diff --git a/.version b/.version index 74d0c76f1..e760bfcb1 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -2.6.25 +2.6.26 diff --git a/config/database.yml b/config/database.yml index 025bf41d6..27f58a9a6 100644 --- a/config/database.yml +++ b/config/database.yml @@ -66,6 +66,9 @@ test: <<: *default database: cerberus_test +atlas_test: + <<: *default + database: atlas_test # As with config/credentials.yml, you never want to store sensitive information, # like your database password, in your source code. If your source code is # ever seen by anyone, they now have access to your database. diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 82fa81802..477383d9a 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -45,7 +45,12 @@ end RSpec.configure do |config| config.before(:suite) do - # TODO: Atlas wipe + # TODO: Atlas wipe <- fixed! with below + DatabaseCleaner[:active_record, db: :atlas_test].strategy = :deletion + DatabaseCleaner[:active_record, db: :atlas_test].clean + c = RSolr.connect(:url => 'http://solr:8983/solr/blacklight-test') + c.delete_by_query '*:*' + c.commit end config.include Devise::Test::ControllerHelpers, type: :controller