spec/spec_helper.rb in td-client-0.8.83 vs spec/spec_helper.rb in td-client-0.8.84

- old
+ new

@@ -46,16 +46,16 @@ {'Accept' => '*/*', 'Date' => /.*/, 'User-Agent' => /Ruby/} end end def stub_api_request(method, path, opts = nil) - scheme = 'http' + scheme = 'https' with_opts = {:headers => headers} if opts - scheme = 'https' if opts[:ssl] + scheme = 'http' if opts[:ssl] == false with_opts[:query] = opts[:query] if opts[:query] end - stub_request(method, "#{scheme}://api.treasure-data.com#{path}").with(with_opts) + stub_request(method, "#{scheme}://api.treasuredata.com#{path}").with(with_opts) end def e(s) s.to_s.gsub(/[^*\-0-9A-Z_a-z]/){|x|'%%%02X' % x.ord} end