Refactoring: Infered spec type from file location applies unwanted support files which cause tests (ApplicationJob) to fail.
This commit is contained in:
parent
3a5d597ab9
commit
a84edbe764
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ class FailingTestJob < ApplicationJob
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
RSpec.describe ApplicationJob, type: :job do
|
RSpec.describe ApplicationJob do
|
||||||
|
|
||||||
it 'syncs ActiveJob#executions to Delayed::Job#attempts' do
|
it 'syncs ActiveJob#executions to Delayed::Job#attempts' do
|
||||||
FailingTestJob.perform_later
|
FailingTestJob.perform_later
|
||||||
|
|
|
@ -64,7 +64,7 @@ RSpec.configure do |config|
|
||||||
#
|
#
|
||||||
# The different available types are documented in the features, such as in
|
# The different available types are documented in the features, such as in
|
||||||
# https://relishapp.com/rspec/rspec-rails/docs
|
# 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.
|
# Filter lines from Rails gems in backtraces.
|
||||||
config.filter_rails_from_backtrace!
|
config.filter_rails_from_backtrace!
|
||||||
|
|
Loading…
Reference in a new issue