diff options
| author | Teddy Wing | 2017-08-07 12:00:53 +0200 | 
|---|---|---|
| committer | Robert | 2017-08-11 10:03:46 +0200 | 
| commit | b9861c01c1cb45b3214b2a2c4758fb971330e355 (patch) | |
| tree | 3c7434a8eac738c68d29d2c441de5e9953f5fd3e /spec/controllers/routes_controller_spec.rb | |
| parent | a407ae36f611c15dc7985d65b369938315eebc20 (diff) | |
| download | chouette-core-b9861c01c1cb45b3214b2a2c4758fb971330e355.tar.bz2 | |
routes_controller_spec.rb: Use lazy let
Don't force creation of the `route`, create it lazily.
Refs #4189
Diffstat (limited to 'spec/controllers/routes_controller_spec.rb')
| -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) } | 
