1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
require 'helper' module Arel module Nodes describe 'not' do describe '#not' do it 'makes a NOT node' do attr = Table.new(:users)[:id] expr = attr.eq(10) node = expr.not node.must_be_kind_of Not node.expr.must_equal expr end end end end end