diff options
| author | Teddy Wing | 2017-08-07 11:52:16 +0200 |
|---|---|---|
| committer | Robert | 2017-08-11 10:03:46 +0200 |
| commit | 57d8bc73baccd53b741d2b8a17601979a5a44cb2 (patch) | |
| tree | 97c9c51cdf562917082a68c72ec1c346e2dfb9c4 /spec | |
| parent | 257c36955ce2446fcfd08f1c1d24f32815006e7a (diff) | |
| download | chouette-core-57d8bc73baccd53b741d2b8a17601979a5a44cb2.tar.bz2 | |
routes_controller_spec.rb: Clean up whitespace
Diffstat (limited to 'spec')
| -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 - |
