require 'test_helper' module Vedeu module Geometries describe Positionable do # describe '#position' do # subject { instance.position } # it { subject.must_be_instance_of(Vedeu::Geometries::Position) } # # @todo Add more tests. # end # describe '#position=' do # subject { instance.position=(value) } # it { subject.must_be_instance_of(Vedeu::Geometries::Position) } # # @todo Add more tests. # end # describe '#position?' do # subject { instance.position? } # # @todo Add more tests. # end # describe '#x' do # let(:position) { Vedeu::Geometries::Position.coerce([17, 2]) } # subject { instance.x } # context 'when a position is set' do # it { subject.must_equal(2) } # end # context 'when a position is not set' do # let(:position) {} # it { subject.must_equal(nil) } # end # end # describe '#y' do # let(:position) { Vedeu::Geometries::Position.coerce([17, 2]) } # subject { instance.y } # context 'when a position is set' do # it { subject.must_equal(17) } # end # context 'when a position is not set' do # let(:position) {} # it { subject.must_equal(nil) } # end # end end # Positionable end # Positionable end # Vedeu