aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorEdouard Maffert2016-09-08 12:00:45 +0200
committerEdouard Maffert2016-09-08 12:00:45 +0200
commit9ae84db05b384e2426a16d15004570eb6cf2e7fe (patch)
tree662fd4f01e70d76735b361790928931221f10189 /spec
parent165202ba666686f341c6112d833b4a16e32a41e0 (diff)
downloadchouette-core-9ae84db05b384e2426a16d15004570eb6cf2e7fe.tar.bz2
Create referential_companies controller and views and fix companies edit link
Diffstat (limited to 'spec')
-rw-r--r--spec/routing/companies_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/routing/companies_spec.rb b/spec/routing/companies_spec.rb
index 25f86325b..df16079f3 100644
--- a/spec/routing/companies_spec.rb
+++ b/spec/routing/companies_spec.rb
@@ -3,21 +3,21 @@ require 'spec_helper'
describe CompaniesController do
describe "routing" do
it "not recognize #routes" do
- get( "/referentials/1/companies/2/routes").should_not route_to(
+ get( "/line_referentials/1/companies/2/routes").should_not route_to(
:controller => "companies", :action => "routes",
- :referential_id => "1", :id => "2"
+ :line_referential_id => "1", :id => "2"
)
end
it "not recognize #lines" do
- get( "/referentials/1/companies/2/lines").should_not route_to(
+ get( "/line_referentials/1/companies/2/lines").should_not route_to(
:controller => "companies", :action => "lines",
- :referential_id => "1", :id => "2"
+ :line_referential_id => "1", :id => "2"
)
end
it "recognize and generate #show" do
- get( "/referentials/1/companies/2").should route_to(
+ get( "/line_referentials/1/companies/2").should route_to(
:controller => "companies", :action => "show",
- :referential_id => "1", :id => "2"
+ :line_referential_id => "1", :id => "2"
)
end
end