test/test_parse.rb in rest-graph-1.4.5 vs test/test_parse.rb in rest-graph-1.4.6

- old
+ new

@@ -68,10 +68,10 @@ should == {'feed' => 'me', 'sig' => "20393e7823730308938a86ecf1c88b14"} end it 'would parse signed_request' do secret = 'aloha' - json = {'ooh' => 'dir', 'moo' => 'bar'}.to_json + json = RestGraph.json_encode('ooh' => 'dir', 'moo' => 'bar') encode = lambda{ |str| [str].pack('m').tr("\n=", '').tr('+/', '-_') } json_encoded = encode[json] sig = OpenSSL::HMAC.digest('sha256', secret, json_encoded)