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

Version Path
vedeu-0.8.32 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.31 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.30 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.29 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.28 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.27 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.26 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.25 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.24 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.23 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.22 test/lib/vedeu/presentation/position_test.rb
vedeu-0.8.21 test/lib/vedeu/presentation/position_test.rb