Sha256: 2a2d7241954c7ac5cc55db6a4e02526aa0b2acd2c4c0d36b50fa5603f1269220

Contents?: true

Size: 658 Bytes

Versions: 24

Compression:

Stored size: 658 Bytes

Contents

require 'test_helper'

module Vedeu

  module DSL

    describe Shared do

      let(:described) { Vedeu::DSL::Shared }
      let(:instance)  { Class.include(described).new }

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

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

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

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

    end # Shared

  end # DSL

end # Vedeu

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
vedeu-0.6.56 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.54 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.53 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.52 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.51 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.50 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.49 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.48 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.47 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.46 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.45 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.44 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.43 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.42 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.41 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.40 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.39 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.38 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.37 test/lib/vedeu/dsl/shared_test.rb
vedeu-0.6.36 test/lib/vedeu/dsl/shared_test.rb