Permalink
Browse files

Merge pull request #113 by @jpignata

  • Loading branch information...
shime committed Sep 5, 2012
2 parents 606dea9 + 60a84bd commit cb536b02cc715dce322e01cbad3daa234bbfd2a4
View
@@ -6,6 +6,7 @@ Feature: Use the notifier in a plain Rack app
Scenario: Rescue and exception in a Rack app
Given the following Rack app:
"""
+ require 'logger'
require 'rack'
require 'airbrake'
@@ -25,6 +26,7 @@ Feature: Use the notifier in a plain Rack app
Scenario: Ignore user agents
Given the following Rack app:
"""
+ require 'logger'
require 'rack'
require 'airbrake'
@@ -14,6 +14,8 @@
content = <<-CONTENT
require 'sham_rack'
+ Airbrake.configuration.logger = Logger.new STDOUT
+
ShamRack.at("api.airbrake.io") {["500", { "Content-type" => "text/xml" }, ["Internal server error"]]}
CONTENT
@@ -1,5 +1,7 @@
require 'sham_rack'
+Airbrake.configuration.logger = Logger.new STDOUT
+
ShamRack.at("api.airbrake.io") do |env|
response = <<-end_xml
<notice>
View
@@ -2,13 +2,7 @@
require 'net/http'
require 'net/https'
require 'rubygems'
-begin
- require 'active_support'
- require 'active_support/core_ext'
-rescue LoadError
- require 'activesupport'
- require 'activesupport/core_ext'
-end
+require 'active_support/core_ext/object/blank'
require 'airbrake/version'
require 'airbrake/configuration'
require 'airbrake/notice'

0 comments on commit cb536b0

Please sign in to comment.