test/lib/vedeu/geometry/geometry_test.rb in vedeu-0.6.14 vs test/lib/vedeu/geometry/geometry_test.rb in vedeu-0.6.15

- old
+ new

@@ -67,9 +67,29 @@ it { instance.must_respond_to(:xn=) } it { instance.must_respond_to(:y=) } it { instance.must_respond_to(:yn=) } end + describe '.store' do + subject { described.store(attributes) } + + it { subject.must_equal(instance) } + end + + describe '#eql?' do + let(:other) { instance } + + subject { instance.eql?(other) } + + it { subject.must_equal(true) } + + context 'when different to other' do + let(:other) { described.new(name: 'other_geometry') } + + it { subject.must_equal(false) } + end + end + describe '#maximise' do let(:attributes) { { height: 6, maximised: false,