We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088bd0a commit 60a1c26Copy full SHA for 60a1c26
lib/rspec/rails/matchers/relation_match_array.rb
@@ -1,3 +1,4 @@
1
if defined?(ActiveRecord::Relation)
2
+ && defined?(RSpec::Matchers::BuiltIn::OperatorMatcher) # RSpec 4 removed OperatorMatcher
3
RSpec::Matchers::BuiltIn::OperatorMatcher.register(ActiveRecord::Relation, '=~', RSpec::Matchers::BuiltIn::ContainExactly)
4
end
0 commit comments