spec/unit/axiom/function/unary/call_spec.rb in axiom-0.1.0 vs spec/unit/axiom/function/unary/call_spec.rb in axiom-0.1.1
- old
+ new
@@ -4,18 +4,18 @@
require File.expand_path('../fixtures/classes', __FILE__)
describe Function::Unary, '#call' do
subject { object.call(tuple) }
- let(:described_class) { UnarySpecs::Object }
- let(:header) { Relation::Header.coerce([ [ :id, Integer ] ]) }
- let(:operand) { header[:id].eq(1) }
- let(:tuple) { Tuple.new(header, [ 1 ]) }
- let(:response) { mock('#call response') }
- let(:object) { described_class.new(operand) }
+ let(:described_class) { UnarySpecs::Object }
+ let(:header) { Relation::Header.coerce([[:id, Integer]]) }
+ let(:operand) { header[:id].eq(1) }
+ let(:tuple) { Tuple.new(header, [1]) }
+ let(:response) { double('#call response') }
+ let(:object) { described_class.new(operand) }
before do
described_class.should_receive(:call).with(true).and_return(response)
end
- it { should equal(response) }
+ it { should be(response) }
end