Skip to content

Commit

Permalink
Test suite configuration fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadel committed Sep 28, 2021
1 parent f5d6698 commit 9f51284
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/dummy/spec/system/import_file_status_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@

before do
allow(CharacterizeJob).to receive(:perform_later)
end

around do |example|
orig_import_path = ENV['IMPORT_PATH']
ENV['IMPORT_PATH'] = File.join(fixture_path, 'images')
example.run
ENV['IMPORT_PATH'] = orig_import_path
end

let(:csv_file) { File.join(fixture_path, 'csv_import', 'good', 'all_fields_multi.csv') }
Expand Down
1 change: 1 addition & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
config.before(:suite) do
FactoryBot.find_definitions
ActiveFedora::Cleaner.clean!
ActiveJob::Base.queue_adapter = :test
end

config.before perform_jobs: true do
Expand Down

0 comments on commit 9f51284

Please sign in to comment.