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

Version Path
vedeu-0.8.0 test/lib/vedeu/geometries/positionable_test.rb
vedeu-0.7.4 test/lib/vedeu/geometries/positionable_test.rb
vedeu-0.7.3 test/lib/vedeu/geometries/positionable_test.rb
vedeu-0.7.2 test/lib/vedeu/geometries/positionable_test.rb
vedeu-0.7.1 test/lib/vedeu/geometries/positionable_test.rb
vedeu-0.7.0 test/lib/vedeu/geometries/positionable_test.rb
vedeu-0.6.71 test/lib/vedeu/geometries/positionable_test.rb