spec/cases/oauth_spec.rb in koala-1.1.0rc2 vs spec/cases/oauth_spec.rb in koala-1.1.0rc3
- old
+ new
@@ -389,10 +389,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 "should throw an error if the algorithm is unsupported" do
- JSON.stub!(:parse).and_return("algorithm" => "my fun algorithm")
+ MultiJson.stub(:decode).and_return("algorithm" => "my fun algorithm")
lambda { @oauth.parse_signed_request(@signed_request) }.should raise_error
end
it "should throw an error if the signature is invalid" do
OpenSSL::HMAC.stub!(:hexdigest).and_return("i'm an invalid signature")
\ No newline at end of file