Sha256: 63aac2bb054bb935bc6d9b130bf4e647a800c4e16a8a7371bc6f409c48e24d00

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 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.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

4 entries across 4 versions & 1 rubygems

Version Path
airbrake-3.1.16 features/metal.feature
airbrake-3.1.15 features/metal.feature
airbrake-3.1.14 features/metal.feature
airbrake-3.1.13 features/metal.feature