diff options
| author | Teddy Wing | 2017-11-29 18:29:18 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-11-29 18:29:18 +0100 |
| commit | 5fa02104cacdd2fcf6fa5c1ce6477eada0a7e9ef (patch) | |
| tree | c52a07b725146b46fa222d9ff7fb4ac30766f6c9 /spec/support | |
| parent | 22896b02846617d6b9dd517f095ea1be676e88ba (diff) | |
| download | chouette-core-5fa02104cacdd2fcf6fa5c1ce6477eada0a7e9ef.tar.bz2 | |
spec/support/referential: Rename `:js` filter to `:truncation`
This `before` hook allows tests to use the "truncation" database cleanup
strategy. It doesn't do anything explicitly JavaScript-related. Rather,
it was named JS because it was intended to be used for feature tests
with JavaScript. However, now that I need to use it for a couple tests
in `spec/models/referential_spec.rb`, the `:js` name doesn't make sense.
Rename the filter to something that says what it does, not how it should
be used.
Refs #5024
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/referential.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/referential.rb b/spec/support/referential.rb index b615491da..c0ae35779 100644 --- a/spec/support/referential.rb +++ b/spec/support/referential.rb @@ -78,7 +78,7 @@ RSpec.configure do |config| first_referential.switch end - config.before(:each, :js => true) do + config.before(:each, truncation: true) do DatabaseCleaner.strategy = :truncation, { except: %w[spatial_ref_sys] } end |
