Sha256: 1b88c456fee9119d15f19758482dd457de7e031fcbd789397781d0ecd53a5ceb

Contents?: true

Size: 912 Bytes

Versions: 14

Compression:

Stored size: 912 Bytes

Contents

Feature: Install the Gem in a Rails 3.x application

  Background:
    Given I generate a new Rails application
    And I configure the Honeybadger shim

  Scenario: Rails is missing `config.secret_token`
    When I configure my application to require Honeybadger
    And I configure Honeybadger with:
      """
      config.api_key = "myapikey"
      config.logger = Logger.new(STDOUT)
      config.debug = true
      """
    And I define a response for "TestController#index":
      """
      session["secret"] = "blue42"
      render :nothing => true
      """
    And I route "/test/index" to "test#index"
    And I successfully run `rm config/initializers/secret_token.rb`
    And I perform a request to "http://example.com:123/test/index"
    Then I should receive a Honeybadger notification
    And the request should not contain "blue42"
    And the request session should contain "config.secret_token"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
honeybadger-1.16.7 features/rails3.x.feature
honeybadger-1.16.6 features/rails3.x.feature
honeybadger-1.16.5 features/rails3.x.feature
honeybadger-1.16.4 features/rails3.x.feature
honeybadger-1.16.3 features/rails3.x.feature
honeybadger-1.16.2 features/rails3.x.feature
honeybadger-1.16.1 features/rails3.x.feature
honeybadger-1.16.0 features/rails3.x.feature
honeybadger-1.15.3 features/rails3.x.feature
honeybadger-1.15.2 features/rails3.x.feature
honeybadger-1.15.1 features/rails3.x.feature
honeybadger-1.15.0 features/rails3.x.feature
honeybadger-1.14.0 features/rails3.x.feature
honeybadger-1.13.2 features/rails3.x.feature