spec/cases/api_spec.rb in koala-2.4.0 vs spec/cases/api_spec.rb in koala-2.5.0rc1
- old
+ new
@@ -126,10 +126,10 @@
it "returns the body of the request as JSON if no http_component is given" do
response = double('response', :body => 'body', :status => 200)
allow(Koala).to receive(:make_request).and_return(response)
json_body = double('JSON body')
- allow(MultiJson).to receive(:load).and_return([json_body])
+ allow(JSON).to receive(:load).and_return([json_body])
expect(@service.api('anything')).to eq(json_body)
end
it "executes an error checking block if provided" do