test/lib/vedeu/dsl/composition_test.rb in vedeu-0.6.1 vs test/lib/vedeu/dsl/composition_test.rb in vedeu-0.6.2

- old
+ new

@@ -26,11 +26,11 @@ it { subject.must_be_instance_of(Vedeu::Views::ViewCollection) } it { subject[0].must_be_instance_of(Vedeu::Views::View) } context 'when the block is not given' do - it { proc { instance.view }.must_raise(Vedeu::InvalidSyntax) } + it { proc { instance.view }.must_raise(Vedeu::Error::InvalidSyntax) } end end describe '#template_for' do let(:_name) {} @@ -42,16 +42,16 @@ subject { instance.template_for(_name, filename, object, options) } context 'when the name of the view is not given' do let(:filename) { 'my_interface.erb' } - it { proc { subject }.must_raise(Vedeu::MissingRequired) } + it { proc { subject }.must_raise(Vedeu::Error::MissingRequired) } end context 'when the filename of the template is not given' do let(:_name) { 'my_interface' } - it { proc { subject }.must_raise(Vedeu::MissingRequired) } + it { proc { subject }.must_raise(Vedeu::Error::MissingRequired) } end context 'when the name and filename are given' do let(:_name) { 'my_interface' } let(:filename) { 'my_interface.erb' }