test/lib/vedeu/models/cell_test.rb in vedeu-0.5.8 vs test/lib/vedeu/models/cell_test.rb in vedeu-0.5.9
- old
+ new
@@ -37,19 +37,19 @@
it { instance.must_respond_to(:x) }
it { instance.must_respond_to(:y) }
end
describe '#eql?' do
- let(:other) { described.new(colour: Colour.new(background: '#000000')) }
+ let(:other) { described.new(value: nil) }
subject { instance.eql?(other) }
it { subject.must_respond_to(:==) }
it { subject.must_equal(true) }
context 'when different to other' do
- let(:other) { described.new(colour: Colour.new(background: '#ff0000')) }
+ let(:other) { described.new(value: 'b') }
it { subject.must_equal(false) }
end
end