Refactoring: Infered spec type from file location applies unwanted support files which cause tests (ApplicationJob) to fail.

This commit is contained in:
Thorsten Eckel 2019-01-15 13:23:16 +01:00
parent 3a5d597ab9
commit a84edbe764
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ class FailingTestJob < ApplicationJob
end
end
RSpec.describe ApplicationJob, type: :job do
RSpec.describe ApplicationJob do
it 'syncs ActiveJob#executions to Delayed::Job#attempts' do
FailingTestJob.perform_later

View file

@ -64,7 +64,7 @@ RSpec.configure do |config|
#
# The different available types are documented in the features, such as in
# https://relishapp.com/rspec/rspec-rails/docs
config.infer_spec_type_from_file_location!
# config.infer_spec_type_from_file_location!
# Filter lines from Rails gems in backtraces.
config.filter_rails_from_backtrace!