From a84edbe764f8e11aa94370c99fe9af9861dd465b Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Tue, 15 Jan 2019 13:23:16 +0100 Subject: [PATCH] Refactoring: Infered spec type from file location applies unwanted support files which cause tests (ApplicationJob) to fail. --- spec/jobs/application_job_spec.rb | 2 +- spec/rails_helper.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/jobs/application_job_spec.rb b/spec/jobs/application_job_spec.rb index 27b0a5f9d..65f5bb76a 100644 --- a/spec/jobs/application_job_spec.rb +++ b/spec/jobs/application_job_spec.rb @@ -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 diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 81792f90d..6f47b5b4f 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -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!