spec/unit/axiom/optimizer/relation/operation/binary/right_spec.rb in axiom-optimizer-0.1.0 vs spec/unit/axiom/optimizer/relation/operation/binary/right_spec.rb in axiom-optimizer-0.1.1
- old
+ new
@@ -3,13 +3,13 @@
require 'spec_helper'
describe Optimizer::Relation::Operation::Binary, '#right' do
subject { object.right }
- let(:optimized) { mock('Optimized') }
- let(:left) { mock('Left') }
- let(:right) { mock('Right', :optimize => optimized) }
- let(:relation) { mock('Relation', :left => left, :right => right) }
- let(:object) { described_class.new(relation) }
+ let(:optimized) { double('Optimized') }
+ let(:left) { double('Left') }
+ let(:right) { double('Right', optimize: optimized) }
+ let(:relation) { double('Relation', left: left, right: right) }
+ let(:object) { described_class.new(relation) }
- it { should equal(optimized) }
+ it { should be(optimized) }
end