aboutsummaryrefslogtreecommitdiffstats
path: root/spec/routing/time_tables_spec.rb
diff options
context:
space:
mode:
authorRobertDober2017-04-10 11:03:11 +0200
committerRobertDober2017-04-11 15:40:26 +0200
commit7b9370d10a2d67b83610b8cf8b876734972c2ee9 (patch)
tree37f7767c2efa2dc596e5668be1165fd20fb8925b /spec/routing/time_tables_spec.rb
parentb19578172fc0d8ddc3d9ec8fa325854a8eebbe69 (diff)
downloadchouette-core-7b9370d10a2d67b83610b8cf8b876734972c2ee9.tar.bz2
Deprecation Warnings removed; Seeds corrected, Refs: #2070
Diffstat (limited to 'spec/routing/time_tables_spec.rb')
-rw-r--r--spec/routing/time_tables_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/routing/time_tables_spec.rb b/spec/routing/time_tables_spec.rb
index 45e426f4c..720ae0815 100644
--- a/spec/routing/time_tables_spec.rb
+++ b/spec/routing/time_tables_spec.rb
@@ -3,25 +3,25 @@ require 'spec_helper'
describe TimeTablesController do
describe "routing" do
it "not recognize #routes" do
- get( "/referentials/1/time_tables/2/routes").should_not route_to(
+ expect(get( "/referentials/1/time_tables/2/routes")).not_to route_to(
:controller => "time_tables", :action => "routes",
:referential_id => "1", :id => "2"
)
end
it "not recognize #lines" do
- get( "/referentials/1/time_tables/2/lines").should_not route_to(
+ expect(get( "/referentials/1/time_tables/2/lines")).not_to route_to(
:controller => "time_tables", :action => "lines",
:referential_id => "1", :id => "2"
)
end
it "not recognize #time_table_periods" do
- get( "/referentials/1/time_tables/2/time_table_periods").should_not route_to(
+ expect(get( "/referentials/1/time_tables/2/time_table_periods")).not_to route_to(
"time_table_periods#index",
:referential_id => "1", :time_table_id => "2"
)
end
it "recognize and generate #show" do
- get( "/referentials/1/time_tables/2").should route_to(
+ expect(get( "/referentials/1/time_tables/2")).to route_to(
:controller => "time_tables", :action => "show",
:referential_id => "1", :id => "2"
)