Sha256: 5c2044ad1fda052ba0400e5ae094c3a25cf9a75c99ce427cbb960db73721bbdf

Contents?: true

Size: 550 Bytes

Versions: 4

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

require_relative "../helper"
require "yaml"

module Arel
  module Nodes
    class CommentTest < Arel::Spec
      describe "equality" do
        it "is equal with equal contents" do
          array = [Comment.new(["foo"]), Comment.new(["foo"])]
          assert_equal 1, array.uniq.size
        end

        it "is not equal with different contents" do
          array = [Comment.new(["foo"]), Comment.new(["bar"])]
          assert_equal 2, array.uniq.size
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/cases/arel/nodes/comment_test.rb
ibm_db-5.4.1-x86-mingw32 test/cases/arel/nodes/comment_test.rb
ibm_db-5.4.0-x86-mingw32 test/cases/arel/nodes/comment_test.rb
ibm_db-5.3.2-x86-mingw32 test/cases/arel/nodes/comment_test.rb