spec/spec_helper.rb in httping-1.0.0 vs spec/spec_helper.rb in httping-1.0.1
- old
+ new
@@ -3,18 +3,22 @@
require 'fakeweb'
FakeWeb.allow_net_connect = false
FakeWeb.register_uri(:any, "http://www.example.com", :body => "hey there.")
+FakeWeb.register_uri(:any, "https://www.example.com", :body => "hey there.")
+FakeWeb.register_uri(:any, "http://www.example.com/search?q=test", :body => "hey there.")
class Object
def exit(status_code = nil)
@status = status_code
end
def puts(output_string = "\n")
Output.puts(output_string)
end
+
+ alias print puts
end
class Output
class << self
def puts(output_string)