spec/acfs/middleware/json_spec.rb in acfs-1.7.0 vs spec/acfs/middleware/json_spec.rb in acfs-2.0.0
- old
+ new
@@ -59,10 +59,10 @@
context 'with invalid JSON response' do
let(:headers) { {'Content-Type' => 'application/json'} }
let(:body) { data.to_json[4..-4] }
it 'raises an error' do
- expect { request.complete! response }.to raise_error(::JSON::ParserError)
+ expect { request.complete! response }.to raise_error(JSON::ParserError)
end
end
context 'without JSON response' do
let(:headers) { {'Content-Type' => 'application/text'} }