spec/gaffe/errors_spec.rb in gaffe-1.0.1 vs spec/gaffe/errors_spec.rb in gaffe-1.0.2
- old
+ new
@@ -10,11 +10,11 @@
subject { response.last }
context 'with builtin exception' do
let(:exception) { ActionController::RoutingError.new(:foo) }
its(:status) { should eql 404 }
- its(:body) { should match /Not Found/ }
+ its(:body) { should match(/Not Found/) }
end
context 'with custom exception and missing view' do
before { ActionDispatch::ExceptionWrapper.rescue_responses.merge! exception_class.name => 'my_custom_error' }
@@ -23,10 +23,10 @@
MyCustomError = Class.new(StandardError)
end
let(:exception) { exception_class.new }
its(:status) { should eql 500 }
- its(:body) { should match /Internal Server Error/ }
+ its(:body) { should match(/Internal Server Error/) }
end
end
end
end