diff options
author | Ernie Miller <ernie@metautonomo.us> | 2010-03-30 09:52:22 -0400 |
---|---|---|
committer | Ernie Miller <ernie@metautonomo.us> | 2010-05-07 13:05:55 -0400 |
commit | 0afcfa27c9f386ca7c190cd1f66db1cdd9971f3b (patch) | |
tree | cbb3edb878cdf7786705c4c586f1c23751cadb0b /spec | |
parent | 7e7a3548bb7e024b0bac0a03e3ac9f774c3486d4 (diff) | |
download | rails-0afcfa27c9f386ca7c190cd1f66db1cdd9971f3b.tar.gz rails-0afcfa27c9f386ca7c190cd1f66db1cdd9971f3b.tar.bz2 rails-0afcfa27c9f386ca7c190cd1f66db1cdd9971f3b.zip |
Rename Attribute Not -> Inequality and add a Not predicate (complement)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/shared/relation_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/shared/relation_spec.rb b/spec/shared/relation_spec.rb index 06e8fd2027..1407dddb2a 100644 --- a/spec/shared/relation_spec.rb +++ b/spec/shared/relation_spec.rb @@ -37,7 +37,7 @@ share_examples_for 'A Relation' do it "finds rows with a not predicate" do expected = @expected.select { |r| r[@relation[:age]] != @pivot[@relation[:age]] } - @relation.where(@relation[:age].not(@pivot[@relation[:age]])).should have_rows(expected) + @relation.where(@relation[:age].noteq(@pivot[@relation[:age]])).should have_rows(expected) end it "finds rows with a less than predicate" do |