spec/client/template_spec.rb in mirage-3.0.4 vs spec/client/template_spec.rb in mirage-3.0.5

- old
+ new

@@ -65,10 +65,10 @@ template.requests_url.should == requests_url end it 'should raise an error if the template is not found' do template_url = 'url' - response = mock(code: 404) + response = double(code: 404) Template.should_receive(:backedup_get).with(template_url, :format => :json).and_return response expect{Template.get(template_url)}.to raise_error Mirage::TemplateNotFound end end