diff options
| author | Teddy Wing | 2017-08-30 18:17:06 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-08-30 18:17:06 +0200 |
| commit | 1886c0581fef1bd851710a1e15889ecd86b558b3 (patch) | |
| tree | 98292c5b0a8c32b1e2024f603c00cc547dc84c9c /spec/models/import_spec.rb | |
| parent | f81bfd7f8aaf2efd36615b904b58a78bdee1fa81 (diff) | |
| download | chouette-core-1886c0581fef1bd851710a1e15889ecd86b558b3.tar.bz2 | |
Import spec: Remove `Timecop` from test that no longer needs it
Since we're not verifying `ended_at`, we have no need for the `Timecop`
block.
Diffstat (limited to 'spec/models/import_spec.rb')
| -rw-r--r-- | spec/models/import_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/models/import_spec.rb b/spec/models/import_spec.rb index 8614d6ec8..4d86c3195 100644 --- a/spec/models/import_spec.rb +++ b/spec/models/import_spec.rb @@ -76,11 +76,9 @@ RSpec.describe Import, type: :model do status: failure_status ) - Timecop.freeze(Time.now) do - workbench_import.update_status + workbench_import.update_status - expect(workbench_import.status).to eq('failed') - end + expect(workbench_import.status).to eq('failed') end end |
