features/rails.feature in airbrake-3.0.9 vs features/rails.feature in airbrake-3.1.0
- old
+ new
@@ -20,11 +20,11 @@
And I run the airbrake generator with "-k myapikey"
Then the command should have run successfully
When I uninstall the "airbrake" gem
And I install cached gems
And I run "rake airbrake:test"
- Then I should see "** [Airbrake] Success: Net::HTTPOK"
+ Then I should see "** [Airbrake] Response from Airbrake:"
And I should receive two Airbrake notifications
Scenario: Configure the notifier by hand
When I generate a new Rails application
And I configure the Airbrake shim
@@ -49,12 +49,11 @@
session[:value] = "test"
raise RuntimeError, "some message"
"""
And I route "/test/index" to "test#index"
And I perform a request to "http://example.com:123/test/index?param=value"
- Then I should receive the following Airbrake notification:
- | project-root | argle/bargle |
+ Then I should receive a Airbrake notification
Scenario: Try to install without an api key
When I generate a new Rails application
And I configure my application to require the "airbrake" gem
And I run the airbrake generator with ""
@@ -64,10 +63,11 @@
When I generate a new Rails application
And I run "capify ."
And I configure the Airbrake shim
And I configure my application to require the "airbrake" gem
And I run the airbrake generator with "-k myapikey"
+ And I configure my application to require the "capistrano" gem if necessary
And I run "cap -T"
Then I should see "airbrake:deploy"
Scenario: Configure and deploy using only vendored gem
When I generate a new Rails application
@@ -76,10 +76,11 @@
And I configure my application to require the "airbrake" gem
And I unpack the "airbrake" gem
And I run the airbrake generator with "-k myapikey"
And I uninstall the "airbrake" gem
And I install cached gems
+ And I configure my application to require the "capistrano" gem if necessary
And I run "cap -T"
Then I should see "airbrake:deploy"
Scenario: Try to install when the airbrake plugin still exists
When I generate a new Rails application
@@ -100,18 +101,11 @@
session[:value] = "test"
raise RuntimeError, "some message"
"""
And I route "/test/index" to "test#index"
And I perform a request to "http://example.com:123/test/index?param=value"
- Then I should receive the following Airbrake notification:
- | component | test |
- | action | index |
- | error message | RuntimeError: some message |
- | error class | RuntimeError |
- | session | value: test |
- | parameters | param: value |
- | url | http://example.com:123/test/index?param=value |
+ Then I should receive a Airbrake notification
Scenario: The gem should not be considered a framework gem
When I generate a new Rails application
And I configure the Airbrake shim
And I configure my application to require the "airbrake" gem
@@ -173,17 +167,11 @@
params[:credit_card_number] = "red23"
raise RuntimeError, "some message"
"""
And I route "/test/index" to "test#index"
And I perform a request to "http://example.com:123/test/index?param=value"
- Then I should receive the following Airbrake notification:
- | component | test |
- | action | index |
- | error message | RuntimeError: some message |
- | error class | RuntimeError |
- | parameters | credit_card_number: [FILTERED] |
- | url | http://example.com:123/test/index?param=value |
+ Then I should receive a Airbrake notification
Scenario: Filtering session in a controller
When I generate a new Rails application
And I configure the Airbrake shim
And I configure my application to require the "airbrake" gem
@@ -198,17 +186,11 @@
session["secret"] = "blue42"
raise RuntimeError, "some message"
"""
And I route "/test/index" to "test#index"
And I perform a request to "http://example.com:123/test/index?param=value"
- Then I should receive the following Airbrake notification:
- | component | test |
- | action | index |
- | error message | RuntimeError: some message |
- | error class | RuntimeError |
- | session | secret: [FILTERED] |
- | url | http://example.com:123/test/index?param=value |
+ Then I should receive a Airbrake notification
Scenario: Filtering session and params based on Rails parameter filters
When I generate a new Rails application
And I configure the Airbrake shim
And I configure my application to require the "airbrake" gem
@@ -220,18 +202,11 @@
session["secret"] = "blue42"
raise RuntimeError, "some message"
"""
And I route "/test/index" to "test#index"
And I perform a request to "http://example.com:123/test/index?param=value"
- Then I should receive the following Airbrake notification:
- | component | test |
- | action | index |
- | error message | RuntimeError: some message |
- | error class | RuntimeError |
- | params | secret: [FILTERED] |
- | session | secret: [FILTERED] |
- | url | http://example.com:123/test/index?param=value |
+ Then I should receive a Airbrake notification
Scenario: Notify airbrake within the controller
When I generate a new Rails application
And I configure the Airbrake shim
And I configure my application to require the "airbrake" gem
@@ -242,13 +217,6 @@
notify_airbrake(RuntimeError.new("some message"))
render :nothing => true
"""
And I route "/test/index" to "test#index"
And I perform a request to "http://example.com:123/test/index?param=value"
- Then I should receive the following Airbrake notification:
- | component | test |
- | action | index |
- | error message | RuntimeError: some message |
- | error class | RuntimeError |
- | session | value: test |
- | parameters | param: value |
- | url | http://example.com:123/test/index?param=value |
+ Then I should receive a Airbrake notification