Browse Source

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

Thorsten Eckel 6 years ago
parent
commit
a84edbe764
2 changed files with 2 additions and 2 deletions
  1. 1 1
      spec/jobs/application_job_spec.rb
  2. 1 1
      spec/rails_helper.rb

+ 1 - 1
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

+ 1 - 1
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!