Sha256: cba1465b6c7100f2f8b6a65bd4efbc8342f00f98fa6aacc874dfdc3cec84721e

Contents?: true

Size: 411 Bytes

Versions: 10

Compression:

Stored size: 411 Bytes

Contents

require 'helper'

module Arel
  module Nodes
    describe 'not' do
      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
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
arel-2.0.10 test/nodes/test_not.rb
square-arel-2.0.9.20110222133018 test/nodes/test_not.rb
arel-2.0.9 test/nodes/test_not.rb
arel-2.0.9.rc1 test/nodes/test_not.rb
arel-2.0.8 test/nodes/test_not.rb
arel-2.0.8.beta.20110131120940 test/nodes/test_not.rb
arel-2.0.7 test/nodes/test_not.rb
arel-2.0.7.beta.20110110114925 test/nodes/test_not.rb
arel-2.0.6 test/nodes/test_not.rb
arel-2.0.5 test/nodes/test_not.rb