diff options
| author | Teddy Wing | 2017-08-07 12:16:43 +0200 |
|---|---|---|
| committer | Robert | 2017-08-11 10:03:46 +0200 |
| commit | d4353b2edc764350befcc28a26ce1d9a774e3de2 (patch) | |
| tree | 5fc799e3631d43c826b6fd810249420be5134506 | |
| parent | b9861c01c1cb45b3214b2a2c4758fb971330e355 (diff) | |
| download | chouette-core-d4353b2edc764350befcc28a26ce1d9a774e3de2.tar.bz2 | |
routes_controller_spec.rb: Convert to new Ruby hash syntax
| -rw-r--r-- | spec/controllers/routes_controller_spec.rb | 24 |
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" |
