Sha256: e234573d7f4b4db8d051505ca28b2bacff1934adfa10c2f48a1c894e5c544f99
Contents?: true
Size: 1.44 KB
Versions: 4
Compression:
Stored size: 1.44 KB
Contents
# frozen_string_literal: true 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
4 entries across 4 versions & 1 rubygems