diff options
| author | Teddy Wing | 2017-08-07 12:00:53 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-08-07 12:00:53 +0200 |
| commit | 0e8def20b170a094b5626c84265c08af45b8adbc (patch) | |
| tree | 35f46392693f4ac8d503cc7c2857dc79ecce31e1 | |
| parent | f1ee86f4c44e6f3256fa1bc514bdc6802a9bafc3 (diff) | |
| download | chouette-core-0e8def20b170a094b5626c84265c08af45b8adbc.tar.bz2 | |
routes_controller_spec.rb: Use lazy let
Don't force creation of the `route`, create it lazily.
Refs #4189
| -rw-r--r-- | spec/controllers/routes_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/routes_controller_spec.rb b/spec/controllers/routes_controller_spec.rb index 4adf05ed2..414583eb3 100644 --- a/spec/controllers/routes_controller_spec.rb +++ b/spec/controllers/routes_controller_spec.rb @@ -1,7 +1,7 @@ RSpec.describe RoutesController, :type => :controller do login_user - let!(:route) { create(:route) } + let(:route) { create(:route) } it { is_expected.to be_kind_of(ChouetteController) } |
