Sha256: 1d7d1c1dac31e5edddd4cabdd4a943d3dc09b3c02a56449569e58ad19a781151

Contents?: true

Size: 588 Bytes

Versions: 4

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

require_relative "../helper"

module Arel
  module Nodes
    describe "BindParam" do
      it "is equal to other bind params with the same value" do
        _(BindParam.new(1)).must_equal(BindParam.new(1))
        _(BindParam.new("foo")).must_equal(BindParam.new("foo"))
      end

      it "is not equal to other nodes" do
        _(BindParam.new(nil)).wont_equal(Node.new)
      end

      it "is not equal to bind params with different values" do
        _(BindParam.new(1)).wont_equal(BindParam.new(2))
      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/bind_param_test.rb
ibm_db-5.4.1-x86-mingw32 test/cases/arel/nodes/bind_param_test.rb
ibm_db-5.4.0-x86-mingw32 test/cases/arel/nodes/bind_param_test.rb
ibm_db-5.3.2-x86-mingw32 test/cases/arel/nodes/bind_param_test.rb