Sha256: 75b593edaade3e792047ea81e79f22eeaafd17ae99ca572ecfafe5b6f9198a9c

Contents?: true

Size: 446 Bytes

Versions: 5

Compression:

Stored size: 446 Bytes

Contents

# 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ibm_db-5.5.0 test/cases/arel/nodes/true_test.rb
ibm_db-5.4.1 test/cases/arel/nodes/true_test.rb
ibm_db-5.4.0 test/cases/arel/nodes/true_test.rb
ibm_db-5.3.2 test/cases/arel/nodes/true_test.rb
ibm_db-5.3.1 test/cases/arel/nodes/true_test.rb