mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
21 lines
409 B
Ruby
21 lines
409 B
Ruby
|
require 'helper'
|
||
|
|
||
|
module Arel
|
||
|
module Nodes
|
||
|
describe 'False' do
|
||
|
describe 'equality' do
|
||
|
it 'is equal to other false nodes' do
|
||
|
array = [False.new, False.new]
|
||
|
assert_equal 1, array.uniq.size
|
||
|
end
|
||
|
|
||
|
it 'is not equal with other nodes' do
|
||
|
array = [False.new, Node.new]
|
||
|
assert_equal 2, array.uniq.size
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|