test/lib/vedeu/geometry/position_index_test.rb in vedeu-0.4.13 vs test/lib/vedeu/geometry/position_index_test.rb in vedeu-0.4.14

- old
+ new

@@ -39,9 +39,23 @@ it { subject.must_be_instance_of(Array) } it { subject.must_equal([5, 16]) } end + describe '#eql?' do + let(:other) { described.new(6, 17) } + + subject { instance.eql?(other) } + + it { subject.must_equal(true) } + + context 'when different to other' do + let(:other) { described.new(2, 9) } + + it { subject.must_equal(false) } + end + end + describe '#to_position' do subject { instance.to_position } it { subject.must_be_instance_of(Vedeu::Position) } end