aboutsummaryrefslogtreecommitdiffstats
path: root/test/nodes/test_not.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/nodes/test_not.rb')
-rw-r--r--test/nodes/test_not.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/nodes/test_not.rb b/test/nodes/test_not.rb
index d02a9bad74..c5bb0088c8 100644
--- a/test/nodes/test_not.rb
+++ b/test/nodes/test_not.rb
@@ -6,13 +6,10 @@ module Arel
describe '#not' do
it 'makes a NOT node' do
attr = Table.new(:users)[:id]
- left = attr.eq(10)
- right = attr.eq(11)
- node = left.or right
- node.expr.left.must_equal left
- node.expr.right.must_equal right
-
- node.or(right).not
+ expr = attr.eq(10)
+ node = expr.not
+ node.must_be_kind_of Not
+ node.expr.must_equal expr
end
end
end