Sha256: addda58bb3abfd5631833ca47804d8551404e0fa2c87d40cb4debf893e1a2ff5

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

Feature: Use the notifier in a plain Rack app

  Background:
    Given I have built and installed the "airbrake" gem

  Scenario: Rescue and exception in a Rack app
    Given the following Rack app:
      """
      require 'rack'
      require 'airbrake'

      Airbrake.configure do |config|
        config.api_key = 'my_api_key'
      end

      app = Rack::Builder.app do
        use Airbrake::Rack
        run lambda { |env| raise "Rack down" }
      end
      """
    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/rack.feature