Sha256: 4733cb37af1c46cffe0c9f387132ae67e6e33e4819782657dc6973648c338285
Contents?: true
Size: 1.49 KB
Versions: 12
Compression:
Stored size: 1.49 KB
Contents
# frozen_string_literal: true require 'test_helper' module Vedeu module Presentation describe Position do let(:described) { Vedeu::Presentation::Position } # 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 # Position end # Presentation end # Vedeu
Version data entries
12 entries across 12 versions & 1 rubygems