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

require_relative "../helper"

module Arel
  module Nodes
    describe Casted do
      describe "#hash" do
        it "is equal when eql? returns true" do
          one = Casted.new 1, 2
          also_one = Casted.new 1, 2

          assert_equal one.hash, also_one.hash
        end
      end
    end
  end
end