spec/cases/oauth_spec.rb in koala-1.4.0 vs spec/cases/oauth_spec.rb in koala-1.4.1

- old
+ new

@@ -653,10 +653,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 - MultiJson.stub(:decode).and_return("algorithm" => "my fun algorithm") + MultiJson.stub(:load).and_return("algorithm" => "my fun algorithm") lambda { @oauth.parse_signed_request(@signed_request) }.should raise_error end it "throws an error if the signature is invalid" do OpenSSL::HMAC.stub!(:hexdigest).and_return("i'm an invalid signature")