Move more routing tests into the routing integration test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3686 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-04-20 15:42:57 +00:00
parent 657aa624a4
commit 0fc884cf42
6 changed files with 46 additions and 212 deletions
@@ -40,17 +40,6 @@ class VersionsControllerTest < ActionController::TestCase
assert_tag :tag => 'h2', :content => /1.0/
end
def test_new_routing
assert_routing(
{:method => :get, :path => 'projects/foo/versions/new'},
:controller => 'versions', :action => 'new', :project_id => 'foo'
)
assert_routing(
{:method => :post, :path => 'projects/foo/versions/new'},
:controller => 'versions', :action => 'new', :project_id => 'foo'
)
end
def test_new
@request.session[:user_id] = 2 # manager
assert_difference 'Version.count' do