diff options
Diffstat (limited to 'spec/routing')
| -rw-r--r-- | spec/routing/group_of_lines_spec.rb | 12 | ||||
| -rw-r--r-- | spec/routing/networks_spec.rb | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/spec/routing/group_of_lines_spec.rb b/spec/routing/group_of_lines_spec.rb index ee5596cf7..8bc437249 100644 --- a/spec/routing/group_of_lines_spec.rb +++ b/spec/routing/group_of_lines_spec.rb @@ -3,21 +3,21 @@ require 'spec_helper' describe GroupOfLinesController do describe "routing" do it "not recognize #routes" do - get( "/referentials/1/group_of_lines/2/routes").should_not route_to( + get( "/line_referentials/1/group_of_lines/2/routes").should_not route_to( :controller => "group_of_lines", :action => "routes", - :referential_id => "1", :id => "2" + :line_referential_id => "1", :id => "2" ) end it "not recognize #lines" do - get( "/referentials/1/group_of_lines/2/lines").should_not route_to( + get( "/line_referentials/1/group_of_lines/2/lines").should_not route_to( :controller => "group_of_lines", :action => "lines", - :referential_id => "1", :id => "2" + :line_referential_id => "1", :id => "2" ) end it "recognize and generate #show" do - get( "/referentials/1/group_of_lines/2").should route_to( + get( "/line_referentials/1/group_of_lines/2").should route_to( :controller => "group_of_lines", :action => "show", - :referential_id => "1", :id => "2" + :line_referential_id => "1", :id => "2" ) end end diff --git a/spec/routing/networks_spec.rb b/spec/routing/networks_spec.rb index c0544980d..8d5366f88 100644 --- a/spec/routing/networks_spec.rb +++ b/spec/routing/networks_spec.rb @@ -3,21 +3,21 @@ require 'spec_helper' describe NetworksController do describe "routing" do it "not recognize #routes" do - get( "/referentials/1/networks/2/routes").should_not route_to( + get( "/line_referentials/1/networks/2/routes").should_not route_to( :controller => "networks", :action => "routes", - :referential_id => "1", :id => "2" + :line_referential_id => "1", :id => "2" ) end it "not recognize #lines" do - get( "/referentials/1/networks/2/lines").should_not route_to( + get( "/line_referentials/1/networks/2/lines").should_not route_to( :controller => "networks", :action => "lines", - :referential_id => "1", :id => "2" + :line_referential_id => "1", :id => "2" ) end it "recognize and generate #show" do - get( "/referentials/1/networks/2").should route_to( + get( "/line_referentials/1/networks/2").should route_to( :controller => "networks", :action => "show", - :referential_id => "1", :id => "2" + :line_referential_id => "1", :id => "2" ) end end |
