Sha256: e95527b5cc21140dc8c25f43d6a0a45cb78002131de54cddc79c2de582514836
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Aggregate::Maximum, '#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/maximum/type_spec.rb |