Sha256: b99f7dbdebff61a85d818bb5621184037f5b9e8d6028a96dc77fd2a6ab4a87a8

Contents?: true

Size: 333 Bytes

Versions: 118

Compression:

Stored size: 333 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]
          expr  = attr.eq(10)
          node  = expr.not
          node.must_be_kind_of Not
          node.expr.must_equal expr
        end
      end
    end
  end
end

Version data entries

118 entries across 100 versions & 14 rubygems

Version Path
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/nodes/test_not.rb
challah-0.5.1 vendor/bundle/gems/arel-3.0.2/test/nodes/test_not.rb
arel-3.0.2 test/nodes/test_not.rb
arel-2.2.3 test/nodes/test_not.rb
arel-3.0.1 test/nodes/test_not.rb
arel-2.2.2 test/nodes/test_not.rb
challah-0.5.0 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/nodes/test_not.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/nodes/test_not.rb
challah-0.4.1 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
challah-0.4.0 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
challah-0.3.5 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
challah-0.3.4 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
challah-0.3.3 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
challah-0.3.2 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
challah-0.3.1 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
challah-0.3.0 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
challah-0.2.1 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
challah-0.2.0 vendor/bundle/gems/arel-3.0.0/test/nodes/test_not.rb
arel-3.0.0 test/nodes/test_not.rb