Skip to content

Commit

Permalink
Merge pull request rspec#434 from alindeman/ar_relation_match_array
Browse files Browse the repository at this point in the history
Fix mistake in check to see if ActiveRecord is defined
  • Loading branch information
justinko committed Sep 1, 2011
2 parents 2008531 + 38c0faa commit c7388eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/rails/matchers/relation_match_array.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if defined?(:ActiveRecord)
if defined?(ActiveRecord)
RSpec::Matchers::OperatorMatcher.register(ActiveRecord::Relation, '=~', RSpec::Matchers::MatchArray)
end

0 comments on commit c7388eb

Please sign in to comment.