Sha256: 5ebad6644aaaf6c8f1268ecb7e6e70bde8816f26f2c7db523d6256cbf629f993
Contents?: true
Size: 698 Bytes
Versions: 48
Compression:
Stored size: 698 Bytes
Contents
Feature: Use the notifier in a Sinatra app Scenario: Rescue an exception in a Sinatra app Given the following Rack app: """ require 'sinatra/base' require 'honeybadger' Honeybadger.configure do |config| config.api_key = 'my_api_key' config.logger = Logger.new(STDOUT) end class FontaneApp < Sinatra::Base use Honeybadger::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 Honeybadger notification
Version data entries
48 entries across 48 versions & 1 rubygems