aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/routes_controller_spec.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-08-07 12:16:43 +0200
committerRobert2017-08-11 10:03:46 +0200
commitd4353b2edc764350befcc28a26ce1d9a774e3de2 (patch)
tree5fc799e3631d43c826b6fd810249420be5134506 /spec/controllers/routes_controller_spec.rb
parentb9861c01c1cb45b3214b2a2c4758fb971330e355 (diff)
downloadchouette-core-d4353b2edc764350befcc28a26ce1d9a774e3de2.tar.bz2
routes_controller_spec.rb: Convert to new Ruby hash syntax
Diffstat (limited to 'spec/controllers/routes_controller_spec.rb')
-rw-r--r--spec/controllers/routes_controller_spec.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/controllers/routes_controller_spec.rb b/spec/controllers/routes_controller_spec.rb
index 414583eb3..cf12f00b1 100644
--- a/spec/controllers/routes_controller_spec.rb
+++ b/spec/controllers/routes_controller_spec.rb
@@ -1,4 +1,4 @@
-RSpec.describe RoutesController, :type => :controller do
+RSpec.describe RoutesController, type: :controller do
login_user
let(:route) { create(:route) }
@@ -30,8 +30,8 @@ RSpec.describe RoutesController, :type => :controller do
describe "GET /index" do
before(:each) do
- get :index, :line_id => route.line_id,
- :referential_id => referential.id
+ get :index, line_id: route.line_id,
+ referential_id: referential.id
end
it_behaves_like "line and referential linked"
@@ -40,9 +40,9 @@ RSpec.describe RoutesController, :type => :controller do
describe "POST /create" do
before(:each) do
- post :create, :line_id => route.line_id,
- :referential_id => referential.id,
- :route => { :name => "changed"}
+ post :create, line_id: route.line_id,
+ referential_id: referential.id,
+ route: { name: "changed"}
end
it_behaves_like "line and referential linked"
@@ -51,9 +51,9 @@ RSpec.describe RoutesController, :type => :controller do
describe "PUT /update" do
before(:each) do
- put :update, :id => route.id, :line_id => route.line_id,
- :referential_id => referential.id,
- :route => route.attributes
+ put :update, id: route.id, line_id: route.line_id,
+ referential_id: referential.id,
+ route: route.attributes
end
it_behaves_like "route, line and referential linked"
@@ -62,9 +62,9 @@ RSpec.describe RoutesController, :type => :controller do
describe "GET /show" do
before(:each) do
- get :show, :id => route.id,
- :line_id => route.line_id,
- :referential_id => referential.id
+ get :show, id: route.id,
+ line_id: route.line_id,
+ referential_id: referential.id
end
it_behaves_like "route, line and referential linked"