spec/unit/axiom/operation/binary/eql_spec.rb in axiom-0.1.0 vs spec/unit/axiom/operation/binary/eql_spec.rb in axiom-0.1.1

- old
+ new

@@ -4,12 +4,12 @@ describe Operation::Binary, '#eql?' do subject { object.eql?(other) } let(:described_class) { Class.new { include Operation::Binary } } - let(:left) { mock('Left') } - let(:right) { mock('Right') } + let(:left) { double('Left') } + let(:right) { double('Right') } let(:object) { described_class.new(left, right) } context 'with the same object' do let(:other) { object } @@ -39,11 +39,11 @@ should eql(other.eql?(object)) end end context 'with an object having a different left operand' do - let(:other_left) { mock('Other Left') } + let(:other_left) { double('Other Left') } let(:other_right) { right } let(:other) { described_class.new(other_left, other_right) } it { should be(false) } @@ -52,10 +52,10 @@ end end context 'with an object having a different right operand' do let(:other_left) { left } - let(:other_right) { mock('Other Right') } + let(:other_right) { double('Other Right') } let(:other) { described_class.new(other_left, other_right) } it { should be(false) } it 'is symmetric' do