Skip to content

Commit

Permalink
Check if RSpec::Mocks is defined in #skip_signature_verification?
Browse files Browse the repository at this point in the history
  • Loading branch information
odlp committed Oct 25, 2024
1 parent 67a538f commit cf5f3f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rspec/rails/matchers/active_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def detect_args_signature_mismatch(jobs)
end

def skip_signature_verification?
return true unless defined?(RSpec::Mocks)

!RSpec::Mocks.configuration.verify_partial_doubles? ||
RSpec::Mocks.configuration.temporarily_suppress_partial_double_verification
end
Expand Down

0 comments on commit cf5f3f8

Please sign in to comment.