Permalink
Browse files

More log specs, version bump (0.1.9)

  • Loading branch information...
1 parent 9275a0e commit af83d98928b5a1d91dc1857658a1eb3a49664794 @winton committed Dec 2, 2009
Showing with 4 additions and 3 deletions.
  1. +1 −1 gemspec.rb
  2. +2 −1 lib/rack/lilypad.rb
  3. +1 −1 spec/rack/lilypad_spec.rb
View
@@ -13,5 +13,5 @@
s.name = GEM_NAME
s.platform = Gem::Platform::RUBY
s.require_path = "lib"
- s.version = "0.1.8"
+ s.version = "0.1.9"
end
View
@@ -70,7 +70,8 @@ def post(exception, env)
http.post uri.path, xml(exception, env), headers
rescue TimeoutError => e
end
- if response == Net::HTTPSuccess
+ case response
+ when Net::HTTPSuccess
env['hoptoad.notified'] = true
log "Hoptoad Success: #{response.class}"
else
@@ -15,7 +15,7 @@ def app
@http = mock(:http)
@http.stub!(:read_timeout=)
@http.stub!(:open_timeout=)
- @http.stub!(:post).and_return Net::HTTPSuccess
+ @http.stub!(:post).and_return Net::HTTPOK.new(nil, nil, nil)
Net::HTTP.stub!(:start).and_yield(@http)
end

0 comments on commit af83d98

Please sign in to comment.