Sha256: c74df548d40d444b1884be7f8b567f753545c99be191e8a9e143e35294d7e7f4

Contents?: true

Size: 1.09 KB

Versions: 17

Compression:

Stored size: 1.09 KB

Contents

Feature: Rescue errors in Rails middleware
  Background:
    Given I successfully run `rails new rails_root -O --skip-gemfile`
    And I cd to "rails_root"
    And I configure the notifier to use the following configuration lines:
    """
      config.api_key = "myapikey"
      config.logger = Logger.new STDOUT
    """
    And I configure the Airbrake shim
    And I append to "app/metal/exploder.rb" with:
    """
      class Exploder
        def call(env)
          raise "Explode!"
        end
      end
    """
    And I remove the file "config/routes.rb"
    And I append to "config/routes.rb" with:
    """
    RailsRoot::Application.routes.draw do
      mount Exploder.new => "/"
    end
    """

  Scenario: It should not report to Airbrake in development
    When I perform a request to "http://example.com:123/metal/index?param=value"
    Then I should not receive a Airbrake notification

  Scenario: It should report to Airbrake in production
    When I perform a request to "http://example.com:123/metal/index?param=value" in the "production" environment
    Then I should receive a Airbrake notification

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
airbrakeV4rails5-4.3.8 features/metal.feature
airbrake-4.3.8 features/metal.feature
airbrake-4.3.7 features/metal.feature
airbrake-4.3.6 features/metal.feature
airbrake-4.3.5 features/metal.feature
airbrake-4.3.4 features/metal.feature
airbrake-4.3.3 features/metal.feature
airbrake-4.3.2 features/metal.feature
airbrake-4.3.1 features/metal.feature
airbrake-4.3.0 features/metal.feature
airbrake-4.2.1 features/metal.feature
airbrake-4.2.0 features/metal.feature
airbrake-4.1.0 features/metal.feature
airbrake-4.0.0 features/metal.feature
airbrake-3.2.1 features/metal.feature
airbrake-3.2.0 features/metal.feature
airbrake-3.1.17 features/metal.feature