Permalink
Browse files

Revert "Supports Rails 4 where each model has its own Relation subclass"

This reverts commit 3b28ce7.

* OperatorRegistry now matches on ancestor chain, so this change is no
  longer necessary. See
  rspec/rspec-expectations@e5e5a74.
  • Loading branch information...
1 parent 07d7c77 commit 03b069fe5c2a278500d150e688695a77b3075180 @alindeman alindeman committed Dec 6, 2012
Showing with 0 additions and 12 deletions.
  1. +0 −12 lib/rspec/rails/matchers/relation_match_array.rb
@@ -1,15 +1,3 @@
if defined?(ActiveRecord::Relation)
RSpec::Matchers::OperatorMatcher.register(ActiveRecord::Relation, '=~', RSpec::Matchers::BuiltIn::MatchArray)
-
- module RSpec
- module Rails
- module RelationOperationMatcherHook
- def inherited(subclass)
- RSpec::Matchers::OperatorMatcher.register(subclass, '=~', RSpec::Matchers::BuiltIn::MatchArray)
- super
- end
- end
- end
- end
- ActiveRecord::Relation.extend(RSpec::Rails::RelationOperationMatcherHook)
end

0 comments on commit 03b069f

Please sign in to comment.