spec/spec_helper.rb in elasticrawl-1.1.4 vs spec/spec_helper.rb in elasticrawl-1.1.5

- old
+ new

@@ -5,9 +5,12 @@ RSpec.configure do |config| # Run each test in a transaction and rollback data on completion. DatabaseCleaner.strategy = :transaction + # Use Shoulda matchers for schema tests. + config.include(Shoulda::Matchers::ActiveRecord, type: :model) + config.before(:each) do # Stub S3 call to get WARC file paths warc_paths = IO.read(File.join(File.dirname(__FILE__), 'fixtures', 'warc.paths')) allow_any_instance_of(Elasticrawl::Crawl).to receive(:warc_paths).and_return(warc_paths)