diff options
Diffstat (limited to 'spec/routing/networks_spec.rb')
| -rw-r--r-- | spec/routing/networks_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
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 |
