aboutsummaryrefslogblamecommitdiffstats
path: root/test/nodes/test_not.rb
blob: c5bb0088c8ac82c0d4f9e369532d1d9907031d52 (plain) (tree)
1
2
3
4
5
6
7
8







                                       



                                   




           
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