Sha256: 6292f30ff3f32bb399a6bb00b1c2fa900da6926c9e4f621dc1d2d31a275f24a5
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Aggregate::Minimum, '#type' do subject { object.type } let(:object) { described_class.new(operand) } let(:operand) { mock('Unhandled') } before do operand.stub(:freeze => operand, :frozen? => true) end it 'delegates to Attribute.infer_type' do return_value = mock('Return Value') Attribute.should_receive(:infer_type).with(operand).and_return(return_value) should equal(return_value) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/aggregate/minimum/type_spec.rb |