Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 906 Bytes
Feature: Use the notifier in a plain Rack app
Given I have built and installed the "airbrake" gem
Scenario: Rescue and exception in a Rack app
Given the following Rack app:
require 'rack'
require 'airbrake'
Airbrake.configure do |config|
config.api_key = 'my_api_key'
app = do
use Airbrake::Rack
run lambda { |env| raise "Rack down" }
When I perform a Rack request to ""
Then I should receive the following Airbrake notification:
| error message | RuntimeError: Rack down |
| error class | RuntimeError |
| parameters | param: value |
| url | |