test/lib/vedeu/repositories/repository_test.rb in vedeu-0.6.1 vs test/lib/vedeu/repositories/repository_test.rb in vedeu-0.6.2
- old
+ new
@@ -145,11 +145,11 @@
subject { instance.find!(model_name) }
context 'when the model cannot be found' do
let(:model_name) { 'not_found' }
- it { proc { subject }.must_raise(Vedeu::ModelNotFound) }
+ it { proc { subject }.must_raise(Vedeu::Error::ModelNotFound) }
end
context 'when the model is found' do
let(:model_instance) { model.new('terbium') }
@@ -245,10 +245,10 @@
it { instance.must_respond_to(:register) }
context 'when a name attribute is empty or nil' do
before { model_instance.name = '' }
- it { proc { subject }.must_raise(Vedeu::MissingRequired) }
+ it { proc { subject }.must_raise(Vedeu::Error::MissingRequired) }
end
context 'when a name attributes is provided' do
let(:model_name) { 'hydrogen' }