Sha256: 2f48236287663758bf3630bee0e588390dff10ff4eef9c1952af7931168924a1

Contents?: true

Size: 571 Bytes

Versions: 5

Compression:

Stored size: 571 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Aggregate, '#finalize' do
  subject { object.finalize(accumulator) }

  let(:described_class) { Class.new(Aggregate)           }
  let(:object)          { described_class.new(attribute) }
  let(:attribute)       { Attribute::Integer.new(:id)    }
  let(:accumulator)     { mock('Accumulator')            }

  it 'delegates to self.class.finalize' do
    return_value = mock('Return Value')
    described_class.should_receive(:finalize).with(accumulator).and_return(return_value)
    should equal(return_value)
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/aggregate/finalize_spec.rb
veritas-0.0.7 spec/unit/veritas/aggregate/finalize_spec.rb
veritas-0.0.6 spec/unit/veritas/aggregate/finalize_spec.rb
veritas-0.0.5 spec/unit/veritas/aggregate/finalize_spec.rb
veritas-0.0.4 spec/unit/veritas/aggregate/finalize_spec.rb