Sha256: 21ad6c2d32f88a92e6bf2cc62c66f42e5687c264a731d4be07cdaf6f29a358f8

Contents?: true

Size: 1.12 KB

Versions: 17

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true

require 'test_helper'

module Vedeu

  class DSLGeometryTestClass

    include Vedeu::DSL::Geometry

  end # DSLGeometryTestClass

  module DSL

    describe Geometry do

      let(:described)          { Vedeu::DSL::Geometry }
      let(:included_described) { Vedeu::DSLGeometryTestClass }

      # describe '#geometry' do
      #   context 'when the required block is not given' do
      #     subject { instance.geometry }

      #     it { proc { subject }.must_raise(Vedeu::Error::RequiresBlock) }
      #   end

      #   context 'when the block is given' do
      #     subject { instance.geometry { } }

      #     context 'when the name is not given' do
      #       it 'uses the name of the model' do
      #         # @todo Add more tests.
      #       end
      #     end

      #     context 'when the name is given' do
      #       # @todo Add more tests.
      #     end
      #   end
      # end

      describe '.included' do
        subject { described.included(included_described) }

        it { subject.must_be_instance_of(Class) }
      end

    end # Geometry

  end # DSL

end # Vedeu

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
vedeu-0.8.32 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.31 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.30 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.29 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.28 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.27 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.26 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.25 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.24 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.23 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.22 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.21 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.20 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.19 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.18 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.17 test/lib/vedeu/dsl/geometry_test.rb
vedeu-0.8.16 test/lib/vedeu/dsl/geometry_test.rb