spec/client/template_spec.rb in mirage-3.0.0.alpha.17 vs spec/client/template_spec.rb in mirage-3.0.0
- old
+ new
@@ -67,10 +67,10 @@
it 'should raise an error if the template is not found' do
template_url = 'url'
response = mock(code: 404)
Template.should_receive(:backedup_get).with(template_url, :format => :json).and_return response
- expect{Template.get(template_url)}.to raise_error Mirage::ResponseNotFound
+ expect{Template.get(template_url)}.to raise_error Mirage::TemplateNotFound
end
end
describe 'initialize' do
it 'throws and exception if an endpoint is not supplied as the first parameter' do