mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-03-14 14:51:37 +00:00
- Use ruby 2.7.7 as it fixed startup issues - Update gems - Remove depr. from puma startup - Make entry.sh dir-agnostic Fix tests: - Use apparition - Update migrations to use new syntax - Some other minor changes
24 lines
441 B
Ruby
24 lines
441 B
Ruby
RSpec.configure do |config|
|
|
config.before(:suite) do
|
|
DatabaseCleaner.clean_with(
|
|
:deletion,
|
|
except: %w(ar_internal_metadata)
|
|
)
|
|
end
|
|
|
|
config.before(:each) do
|
|
DatabaseCleaner.strategy = :deletion
|
|
end
|
|
|
|
config.before(:each, js: true) do
|
|
DatabaseCleaner.strategy = :deletion
|
|
end
|
|
|
|
config.before(:each) do
|
|
DatabaseCleaner.start
|
|
end
|
|
|
|
config.append_after(:each) do
|
|
DatabaseCleaner.clean
|
|
end
|
|
end
|