test/lib/vedeu/dsl/interface_test.rb in vedeu-0.6.12 vs test/lib/vedeu/dsl/interface_test.rb in vedeu-0.6.13

- old
+ new

@@ -32,11 +32,11 @@ it { subject.must_be_instance_of(Vedeu::Models::Interface) } context 'when the block is not given' do subject { described.interface('fluorine') } - it { proc { subject }.must_raise(Vedeu::Error::InvalidSyntax) } + it { proc { subject }.must_raise(Vedeu::Error::RequiresBlock) } end context 'when the name is not given' do subject { described.interface('') do @@ -52,11 +52,11 @@ after { Vedeu.borders.reset } context 'when the block is not given' do subject { instance.border } - it { proc { subject }.must_raise(Vedeu::Error::InvalidSyntax) } + it { proc { subject }.must_raise(Vedeu::Error::RequiresBlock) } end context 'when the block is given' do subject { instance.border { } } @@ -180,10 +180,10 @@ describe '#geometry' do context 'when the required block is not provided' do subject { instance.geometry } - it { proc { subject }.must_raise(Vedeu::Error::InvalidSyntax) } + it { proc { subject }.must_raise(Vedeu::Error::RequiresBlock) } end context 'when the block is given' do subject { instance.geometry { } }