lib/angelo/minitest/helpers.rb in angelo-0.1.8 vs lib/angelo/minitest/helpers.rb in angelo-0.1.9

- old
+ new

@@ -43,10 +43,10 @@ define_method m do |path, params = {}, headers = {}| hc_req m, path, params, headers end end - def socket path, params = {} + def websocket_helper path, params = {} params = params.keys.reduce([]) {|a,k| a << CGI.escape(k) + '=' + CGI.escape(params[k]) a }.join('&')