test/test_parse.rb in rest-graph-1.4.2 vs test/test_parse.rb in rest-graph-1.4.3

- old
+ new

@@ -96,6 +96,14 @@ rg = RestGraph.new(:access_token => 'a', :secret => 'z') rg.parse_fbs!(rg.fbs) .should.kind_of?(Hash) rg.parse_fbs!(rg.fbs.sub(/sig\=\w+/, 'sig=abc')).should == nil end + it 'could generate correct fbs with additional parameters' do + rg = RestGraph.new(:access_token => 'a', :secret => 'z') + rg.data['expires'] = '1234' + rg.parse_fbs!(rg.fbs) .should.kind_of?(Hash) + rg.data['access_token'] .should == 'a' + rg.data['expires'] .should == '1234' + end + end