spec/cases/oauth_spec.rb in koala-2.5.0 vs spec/cases/oauth_spec.rb in koala-3.0.0.beta1

- old
+ new

@@ -582,10 +582,10 @@ describe "for parsing signed requests" do # the signed request code is ported directly from Facebook # so we only need to test at a high level that it works it "throws an error if the algorithm is unsupported" do - allow(JSON).to receive(:load).and_return("algorithm" => "my fun algorithm") + allow(JSON).to receive(:parse).and_return("algorithm" => "my fun algorithm") expect { @oauth.parse_signed_request(@signed_params) }.to raise_error(Koala::Facebook::OAuthSignatureError) end it "throws an error if the signature is invalid" do allow(OpenSSL::HMAC).to receive(:hexdigest).and_return("i'm an invalid signature")