test/airbrake_tasks_test.rb in airbrake-3.1.12 vs test/airbrake_tasks_test.rb in airbrake-3.1.13

- old
+ new

@@ -133,14 +133,14 @@ config.host = "custom.host" end end context "on deploy(:rails_env => 'staging')" do - setup { @output = AirbrakeTasks.deploy(:rails_env => "staging") } + setup { @output = AirbrakeTasks.deploy(:rails_env => "staging") } before_should "post to the custom host" do @post = stub("post", :set_form_data => nil) - @http_proxy = stub("proxy", :request => @response) + @http_proxy = stub("proxy", :request => stub("response", :body => "stub body")) @http_proxy_class = stub("proxy_class", :new => @http_proxy) @http_proxy_class.expects(:new).with("custom.host", 80).returns(@http_proxy) Net::HTTP.expects(:Proxy).with(any_parameters).returns(@http_proxy_class) Net::HTTP::Post.expects(:new).with("/deploys.txt").returns(@post)