diff options
Diffstat (limited to 'test/integration/routing/issues_test.rb')
-rw-r--r-- | test/integration/routing/issues_test.rb | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/test/integration/routing/issues_test.rb b/test/integration/routing/issues_test.rb index 0dc3c163f..6b1c83c6d 100644 --- a/test/integration/routing/issues_test.rb +++ b/test/integration/routing/issues_test.rb @@ -18,7 +18,7 @@ require File.expand_path('../../../test_helper', __FILE__) class RoutingIssuesTest < ActionDispatch::IntegrationTest - def test_issues_rest_actions + def test_issues assert_routing( { :method => 'get', :path => "/issues" }, { :controller => 'issues', :action => 'index' } @@ -32,10 +32,6 @@ class RoutingIssuesTest < ActionDispatch::IntegrationTest { :controller => 'issues', :action => 'index', :format => 'atom' } ) assert_routing( - { :method => 'get', :path => "/issues.xml" }, - { :controller => 'issues', :action => 'index', :format => 'xml' } - ) - assert_routing( { :method => 'get', :path => "/issues/64" }, { :controller => 'issues', :action => 'show', :id => '64' } ) @@ -50,31 +46,20 @@ class RoutingIssuesTest < ActionDispatch::IntegrationTest :format => 'atom' } ) assert_routing( - { :method => 'get', :path => "/issues/64.xml" }, - { :controller => 'issues', :action => 'show', :id => '64', - :format => 'xml' } - ) - assert_routing( - { :method => 'post', :path => "/issues.xml" }, - { :controller => 'issues', :action => 'create', :format => 'xml' } - ) - assert_routing( { :method => 'get', :path => "/issues/64/edit" }, { :controller => 'issues', :action => 'edit', :id => '64' } ) assert_routing( - { :method => 'put', :path => "/issues/1.xml" }, - { :controller => 'issues', :action => 'update', :id => '1', - :format => 'xml' } + { :method => 'put', :path => "/issues/1" }, + { :controller => 'issues', :action => 'update', :id => '1' } ) assert_routing( - { :method => 'delete', :path => "/issues/1.xml" }, - { :controller => 'issues', :action => 'destroy', :id => '1', - :format => 'xml' } + { :method => 'delete', :path => "/issues/1" }, + { :controller => 'issues', :action => 'destroy', :id => '1' } ) end - def test_issues_rest_actions_scoped_under_project + def test_issues_scoped_under_project assert_routing( { :method => 'get', :path => "/projects/23/issues" }, { :controller => 'issues', :action => 'index', :project_id => '23' } @@ -90,11 +75,6 @@ class RoutingIssuesTest < ActionDispatch::IntegrationTest :format => 'atom' } ) assert_routing( - { :method => 'get', :path => "/projects/23/issues.xml" }, - { :controller => 'issues', :action => 'index', :project_id => '23', - :format => 'xml' } - ) - assert_routing( { :method => 'post', :path => "/projects/23/issues" }, { :controller => 'issues', :action => 'create', :project_id => '23' } ) |