rubysherpas / paranoia

acts_as_paranoid for Rails 5, 6 and 7
Other
2.87k stars 524 forks source link

Define rspec matcher only when rspec is defined #529

Closed swelther closed 2 years ago

swelther commented 2 years ago

Our CI tests run in a CI environment, so the rspec matcher is not defined. This PR changes the definition of the matcher so it is always defined when RSpec itself is defined.

Added no tests because not really possible. The gem itself does not use RSpec for tests.