test/facebook/test_parse.rb in rest-more-3.3.4 vs test/facebook/test_parse.rb in rest-more-3.4.0
- old
+ new
@@ -75,10 +75,10 @@
rg.data.empty?.should.eq true
end
describe 'signed_request' do
def encode str
- [str].pack('m0').tr('=', '').tr('+/', '-_')
+ [str].pack('m0').tr('+/', '-_')
end
def setup_sr secret, data, sig=nil
json_encoded = encode(RC::Json.encode(data))
sig ||= OpenSSL::HMAC.digest('sha256', secret, json_encoded)