Sha256: 46c759d48da8a855f945b37d4edb0d5e3cb44de0e08f6846cc4063d69f4440b8

Contents?: true

Size: 629 Bytes

Versions: 3

Compression:

Stored size: 629 Bytes

Contents

require "spec_helper"

describe TFG::Support::HashWithIndifferentEquality do
  let(:hash) { Hash.new }

  subject(:hash_with_indifferent_equality) { TFG::Support::HashWithIndifferentEquality.new(hash) }

  describe "#is_a?" do
    subject(:is_a?) { hash_with_indifferent_equality.is_a?(klass) }

    context "with TFG::Support::HashWithIndifferentEquality" do
      let(:klass) { TFG::Support::HashWithIndifferentEquality }

      specify { expect(is_a?).to be_true }
    end

    context "with Hash" do
      let(:klass) { TFG::Support::HashWithIndifferentEquality }

      specify { expect(is_a?).to be_true }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tfg_support-1.1.1 spec/tfg/support/hash_with_indifferent_equality_spec.rb
tfg_support-1.0.1 spec/tfg/support/hash_with_indifferent_equality_spec.rb
tfg_support-1.0.0 spec/tfg/support/hash_with_indifferent_equality_spec.rb