aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/cases/arel/nodes/false_test.rb
blob: 4ecf8e332eb839fc26338613547222a0ddb59c91 (plain) (tree)
1
2
3
4
5
6
7
8
9
                             

                            


              


                                             



                                         
                                             






                                         
# frozen_string_literal: true

require_relative "../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