summaryrefslogtreecommitdiffstats
path: root/test/functional/boards_controller_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-04-21 16:02:55 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-04-21 16:02:55 +0000
commit9b595c689d06ffc1386e242177358711bdbf5c3a (patch)
tree50b51d5cf708fe43aa2b3dce4d56ea871b3e1319 /test/functional/boards_controller_test.rb
parent0fc884cf422356a2b57131daaa3340fd9da91b46 (diff)
downloadredmine-9b595c689d06ffc1386e242177358711bdbf5c3a.tar.gz
redmine-9b595c689d06ffc1386e242177358711bdbf5c3a.zip
Refactor: Move the rest of the routing tests to RoutingTest.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3687 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/boards_controller_test.rb')
-rw-r--r--test/functional/boards_controller_test.rb47
1 files changed, 0 insertions, 47 deletions
diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb
index 254ee9385..1904427ea 100644
--- a/test/functional/boards_controller_test.rb
+++ b/test/functional/boards_controller_test.rb
@@ -31,13 +31,6 @@ class BoardsControllerTest < ActionController::TestCase
User.current = nil
end
- def test_index_routing
- assert_routing(
- {:method => :get, :path => '/projects/world_domination/boards'},
- :controller => 'boards', :action => 'index', :project_id => 'world_domination'
- )
- end
-
def test_index
get :index, :project_id => 1
assert_response :success
@@ -60,17 +53,6 @@ class BoardsControllerTest < ActionController::TestCase
assert_not_nil assigns(:topics)
end
- def test_new_routing
- assert_routing(
- {:method => :get, :path => '/projects/world_domination/boards/new'},
- :controller => 'boards', :action => 'new', :project_id => 'world_domination'
- )
- assert_recognizes(
- {:controller => 'boards', :action => 'new', :project_id => 'world_domination'},
- {:method => :post, :path => '/projects/world_domination/boards'}
- )
- end
-
def test_post_new
@request.session[:user_id] = 2
assert_difference 'Board.count' do
@@ -79,17 +61,6 @@ class BoardsControllerTest < ActionController::TestCase
assert_redirected_to '/projects/ecookbook/settings/boards'
end
- def test_show_routing
- assert_routing(
- {:method => :get, :path => '/projects/world_domination/boards/44'},
- :controller => 'boards', :action => 'show', :id => '44', :project_id => 'world_domination'
- )
- assert_routing(
- {:method => :get, :path => '/projects/world_domination/boards/44.atom'},
- :controller => 'boards', :action => 'show', :id => '44', :project_id => 'world_domination', :format => 'atom'
- )
- end
-
def test_show
get :show, :project_id => 1, :id => 1
assert_response :success
@@ -108,17 +79,6 @@ class BoardsControllerTest < ActionController::TestCase
assert_not_nil assigns(:messages)
end
- def test_edit_routing
- assert_routing(
- {:method => :get, :path => '/projects/world_domination/boards/44/edit'},
- :controller => 'boards', :action => 'edit', :id => '44', :project_id => 'world_domination'
- )
- assert_recognizes(#TODO: use PUT method to board_path, modify form accordingly
- {:controller => 'boards', :action => 'edit', :id => '44', :project_id => 'world_domination'},
- {:method => :post, :path => '/projects/world_domination/boards/44/edit'}
- )
- end
-
def test_post_edit
@request.session[:user_id] = 2
assert_no_difference 'Board.count' do
@@ -128,13 +88,6 @@ class BoardsControllerTest < ActionController::TestCase
assert_equal 'Testing', Board.find(2).name
end
- def test_destroy_routing
- assert_routing(#TODO: use DELETE method to board_path, modify form accoringly
- {:method => :post, :path => '/projects/world_domination/boards/44/destroy'},
- :controller => 'boards', :action => 'destroy', :id => '44', :project_id => 'world_domination'
- )
- end
-
def test_post_destroy
@request.session[:user_id] = 2
assert_difference 'Board.count', -1 do