Sha256: bdbc90a69b29987863d1e1b840c00a698e812fe85b594c23e5ea31c6e58587d4

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

require_relative '../../../../spec_helper'
require 'aequitas/support/value_object'

module Aequitas
  describe ValueObject::Equalizer do
    let(:equalizer) { ValueObject::Equalizer.new(keys) }
    let(:keys) { [:a, :b, :c] }

    describe '#initialize' do
      it "doesn't raise" do
        assert_kind_of ValueObject::Equalizer, equalizer
      end
    end

    describe '#keys' do
      it 'returns the values that the Equalizer was initialized with' do
        assert_equal [:a, :b, :c], equalizer.keys
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aequitas-0.0.2 spec/unit/aequitas/support/value_object/equalizer_spec.rb