aboutsummaryrefslogtreecommitdiffstats
path: root/test/nodes/test_not.rb
blob: c5bb0088c8ac82c0d4f9e369532d1d9907031d52 (plain) (blame)
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