Sha256: bcd25b3e9f948bb6b649ebcddee45978365d32ae74d05fa7554d7c2a247a3639
Contents?: true
Size: 1.41 KB
Versions: 7
Compression:
Stored size: 1.41 KB
Contents
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
Version data entries
7 entries across 7 versions & 1 rubygems