From 0afcfa27c9f386ca7c190cd1f66db1cdd9971f3b Mon Sep 17 00:00:00 2001 From: Ernie Miller Date: Tue, 30 Mar 2010 09:52:22 -0400 Subject: Rename Attribute Not -> Inequality and add a Not predicate (complement) --- spec/shared/relation_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/shared') 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 -- cgit v1.2.3