@@ -19,14 +19,12 require File.expand_path('../../../test_helper', __FILE__) | |||
|
19 | 19 | |
|
20 | 20 | class RoutingMyTest < ActionController::IntegrationTest |
|
21 | 21 | def test_my |
|
22 | assert_routing( | |
|
23 | { :method => 'get', :path => "/my/account" }, | |
|
24 |
{ : |
|
|
25 | ) | |
|
26 | assert_routing( | |
|
27 | { :method => 'post', :path => "/my/account" }, | |
|
28 | { :controller => 'my', :action => 'account' } | |
|
29 | ) | |
|
22 | ["get", "post"].each do |method| | |
|
23 | assert_routing( | |
|
24 | { :method => method, :path => "/my/account" }, | |
|
25 | { :controller => 'my', :action => 'account' } | |
|
26 | ) | |
|
27 | end | |
|
30 | 28 | assert_routing( |
|
31 | 29 | { :method => 'get', :path => "/my/page" }, |
|
32 | 30 | { :controller => 'my', :action => 'page' } |
@@ -43,14 +41,12 class RoutingMyTest < ActionController::IntegrationTest | |||
|
43 | 41 | { :method => 'post', :path => "/my/reset_api_key" }, |
|
44 | 42 | { :controller => 'my', :action => 'reset_api_key' } |
|
45 | 43 | ) |
|
46 | assert_routing( | |
|
47 | { :method => 'get', :path => "/my/password" }, | |
|
48 |
{ : |
|
|
49 | ) | |
|
50 | assert_routing( | |
|
51 | { :method => 'post', :path => "/my/password" }, | |
|
52 | { :controller => 'my', :action => 'password' } | |
|
53 | ) | |
|
44 | ["get", "post"].each do |method| | |
|
45 | assert_routing( | |
|
46 | { :method => method, :path => "/my/password" }, | |
|
47 | { :controller => 'my', :action => 'password' } | |
|
48 | ) | |
|
49 | end | |
|
54 | 50 | assert_routing( |
|
55 | 51 | { :method => 'get', :path => "/my/page_layout" }, |
|
56 | 52 | { :controller => 'my', :action => 'page_layout' } |
General Comments 0
You need to be logged in to leave comments.
Login now