diff options
author | Ernie Miller <ernie@metautonomo.us> | 2010-03-24 16:22:15 -0400 |
---|---|---|
committer | Ernie Miller <ernie@metautonomo.us> | 2010-05-07 13:04:42 -0400 |
commit | def75c7b54ccc18f3a8daf79b6144ddcb538d4e8 (patch) | |
tree | 7aaa63607fa9db942c7dd0a1fe32c2aa4650a118 /spec/shared/relation_spec.rb | |
parent | 7aff5ac78e874fa999b7edae26f5031dac017a6e (diff) | |
download | rails-def75c7b54ccc18f3a8daf79b6144ddcb538d4e8.tar.gz rails-def75c7b54ccc18f3a8daf79b6144ddcb538d4e8.tar.bz2 rails-def75c7b54ccc18f3a8daf79b6144ddcb538d4e8.zip |
Added NotMatch and NotIn predicates, made Not derive from Equality (reverted later)
Diffstat (limited to 'spec/shared/relation_spec.rb')
-rw-r--r-- | spec/shared/relation_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/shared/relation_spec.rb b/spec/shared/relation_spec.rb index 5f0ae4b46e..06e8fd2027 100644 --- a/spec/shared/relation_spec.rb +++ b/spec/shared/relation_spec.rb @@ -61,12 +61,16 @@ share_examples_for 'A Relation' do end it "finds rows with a matches predicate" + + it "finds rows with a not matches predicate" it "finds rows with an in predicate" do pending set = @expected[1..(@expected.length/2+1)] @relation.all(:id.in => set.map { |r| r.id }).should have_resources(set) end + + it "finds rows with a not in predicate" end describe "#order" do |