Sha256: 3a2074d27375b3ba7277e689e9ca7001682c6926be42989e6839d467762adb94
Contents?: true
Size: 1015 Bytes
Versions: 12
Compression:
Stored size: 1015 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 the following Airbrake notification: | error message | RuntimeError: Sinatra has left the building | | error class | RuntimeError | | parameters | param: value | | url | http://example.com:123/test/index?param=value |
Version data entries
12 entries across 12 versions & 1 rubygems