Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.631 kb
Feature: Rescue errors in Rails middleware
Background:
Given I have built and installed the "airbrake" gem
And I generate a new Rails application
And I configure the Airbrake shim
And I configure my application to require the "airbrake" gem
And I run the airbrake generator with "-k myapikey"
Scenario: Rescue an exception in the dispatcher
When I define a Metal endpoint called "Exploder":
"""
def self.call(env)
raise "Explode"
end
"""
When I perform a request to "http://example.com:123/metal/index?param=value"
Then I should receive a Airbrake notification
Jump to Line
Something went wrong with that request. Please try again.