Sha256: d71a98f4787f26a4c9cf79b79a23fcf36832b3720cba1df7c44bd74afaccc5a8
Contents?: true
Size: 1.35 KB
Versions: 5
Compression:
Stored size: 1.35 KB
Contents
# frozen_string_literal: true require 'test_helper' module Vedeu class DSLBorderTestClass include Vedeu::DSL::Border end # DSLBorderTestClass module DSL describe Border do let(:described) { Vedeu::DSL::Border } let(:included_described) { Vedeu::DSLBorderTestClass } let(:instance) { Class.include(described).new } let(:_name) { :vedeu_dsl_border } describe '.included' do subject { described.included(included_described) } it { subject.must_be_instance_of(Class) } end 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
5 entries across 5 versions & 1 rubygems