aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/arel/nodes/true_test.rb
blob: 1e85fe7d48c0e7068a9cc45be5e84af06eba01ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require_relative "../helper"

module Arel
  module Nodes
    describe "True" do
      describe "equality" do
        it "is equal to other true nodes" do
          array = [True.new, True.new]
          assert_equal 1, array.uniq.size
        end

        it "is not equal with other nodes" do
          array = [True.new, Node.new]
          assert_equal 2, array.uniq.size
        end
      end
    end
  end
end