diff options
| author | Teddy Wing | 2017-08-07 11:52:16 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-08-07 11:52:16 +0200 |
| commit | 1db9e40adc4c20372102032085521ad3eeab8d3b (patch) | |
| tree | cdae1d88cf278b5f45ead30718868c9348dac0a4 | |
| parent | e1429e4a20020a156099898f35085489e9eae63e (diff) | |
| download | chouette-core-1db9e40adc4c20372102032085521ad3eeab8d3b.tar.bz2 | |
routes_controller_spec.rb: Clean up whitespace
| -rw-r--r-- | spec/controllers/routes_controller_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/controllers/routes_controller_spec.rb b/spec/controllers/routes_controller_spec.rb index 000b799db..44f552a3b 100644 --- a/spec/controllers/routes_controller_spec.rb +++ b/spec/controllers/routes_controller_spec.rb @@ -10,6 +10,7 @@ RSpec.describe RoutesController, :type => :controller do # expect(response).to redirect_to( referential_line_path(referential,route.line) ) end end + shared_examples_for "line and referential linked" do it "assigns route.line as @line" do expect(assigns[:line]).to eq(route.line) @@ -19,6 +20,7 @@ RSpec.describe RoutesController, :type => :controller do expect(assigns[:referential]).to eq(referential) end end + shared_examples_for "route, line and referential linked" do it "assigns route as @route" do expect(assigns[:route]).to eq(route) @@ -78,4 +80,3 @@ RSpec.describe RoutesController, :type => :controller do end end - |
