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