Sha256: 8dd1cace2afaa72452611bb00a736df25361d37dac3ddb5cc7f5d1c4dffe22d9
Contents?: true
Size: 771 Bytes
Versions: 4
Compression:
Stored size: 771 Bytes
Contents
Feature: Use the notifier in a Sinatra app Background: Given I have built and installed the "projectlocker_errata" gem Scenario: Rescue an exception in a Sinatra app Given the following Rack app: """ require 'sinatra/base' require 'projectlocker_errata' ProjectlockerErrata.configure do |config| config.api_key = 'my_api_key' end class FontaneApp < Sinatra::Base use ProjectlockerErrata::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 ProjectlockerErrata notification
Version data entries
4 entries across 4 versions & 1 rubygems