Sha256: ab24a1f807e942e44594469d37206841b53afa44707612ea569d1aceb6d23bd0
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
Feature: Use the notifier in a Sinatra app Background: Given I have built and installed the "airbrake" gem Scenario: Rescue an exception in a Sinatra app Given the following Rack app: """ require 'sinatra/base' require 'airbrake' Airbrake.configure do |config| config.api_key = 'my_api_key' end class FontaneApp < Sinatra::Base use Airbrake::Rack enable :raise_errors get "/test/index" do raise "Sinatra has left the building" end end app = FontaneApp """ When I perform a Rack request to "http://example.com:123/test/index?param=value" Then I should receive a Airbrake notification for rack
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
airbrake-3.1.0 | features/sinatra.feature |