test/fgraph_test.rb in fgraph-0.6.0 vs test/fgraph_test.rb in fgraph-0.6.1

- old
+ new

@@ -287,21 +287,21 @@ "data" => [ {"name"=>"Belle Clara", "id"=>"100000133774483"}, {"name"=>"Rosemary Schapira", "id"=>"100000237306697"} ], "paging"=> { - "previous"=> "https://graph.facebook.com/756314021/friends?offset=0&limit=2&access_token=101507589896698", - "next"=> "https://graph.facebook.com/756314021/friends?offset=4&limit=2&access_token=101507589896698" + "previous"=> "https://graph.facebook.com/756314021/friends?offset=0&limit=2&access_token=101507589896698|1234", + "next"=> "https://graph.facebook.com/756314021/friends?offset=4&limit=2&access_token=101507589896698|1234" } } collection = FGraph::Collection.new(response) assert_equal response['data'].length, collection.length assert_equal response['data'].first, collection.first assert_equal response['paging']['next'], collection.next_url assert_equal response['paging']['previous'], collection.previous_url - assert_equal({'offset' => '0', 'limit' => '2', 'access_token' => '101507589896698'}, collection.previous_options) - assert_equal({'offset' => '4', 'limit' => '2', 'access_token' => '101507589896698'}, collection.next_options) + assert_equal({'offset' => '0', 'limit' => '2', 'access_token' => '101507589896698|1234'}, collection.previous_options) + assert_equal({'offset' => '4', 'limit' => '2', 'access_token' => '101507589896698|1234'}, collection.next_options) end end def response_error(type, msg=nil) {'error' => { 'type' => type, 'message' => msg}}