test/facebook/test_handler.rb in rest-more-2.0.2 vs test/facebook/test_handler.rb in rest-more-2.0.3

- old
+ new

@@ -58,10 +58,11 @@ @fql_error = '{"error_code":603,"error_msg":"Unknown table: bad"}' @fql_error_hash = RC::Json.decode(@fql_error) @bad_fql_query = 'SELECT name FROM bad_table WHERE uid="12345"' bad_fql_request = "https://api.facebook.com/method/fql.query?" \ - "format=json&query=#{CGI.escape(@bad_fql_query)}" + "format=json&query=#{ + RC::Middleware.escape(@bad_fql_query)}" stub_request(:get, bad_fql_request).to_return(:body => @fql_error) end should 'call error_handler if error occurred' do