Sha256: ffb358ac314fe38b1b004ce3b95cc2a6dfd8d865e58a9e7efddb0a278b3a6379

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

require 'test_helper'

module Vedeu

  module DSL

    describe Border do

      let(:described) { Vedeu::DSL::Border }
      let(:instance)  { Class.include(described).new }
      let(:_name)     { :vedeu_dsl_border }

      describe '#border' do
        subject { instance.border(_name) {} }

        context 'when the name is not given' do
          let(:_name) {}

          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

        context 'when the block is not given' do
          subject { instance.border(_name) }

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

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

          # @todo Add more tests.
        end
      end

      describe '#border!' do
        subject { instance.border! }

        # @todo Add more tests.
      end

    end # Border

  end # DSL

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.8.0 test/lib/vedeu/dsl/border_test.rb