features/rails.feature in airbrake-3.1.11 vs features/rails.feature in airbrake-3.1.12

- old
+ new

@@ -226,20 +226,32 @@ When I configure the Airbrake shim And I configure the notifier to use the following configuration lines: """ config.api_key = "myapikey" config.logger = Logger.new STDOUT - config.user_attributes = [:id, :name, :email, :username, :class_name] + config.user_attributes = [:id, :name, :email, :username] """ And I define a response for "TestController#index": """ raise RuntimeError, "some message" """ And I route "/test/index" to "test#index" And I have set up authentication system in my app that uses "current_user" And I perform a request to "http://example.com:123/test/index" in the "production" environment Then I should receive a Airbrake notification And the Airbrake notification should contain the custom user details + + Scenario: It should warn the user that she's using unsupported attributes for + current user + When I configure the Airbrake shim + And I configure the notifier to use the following configuration lines: + """ + config.api_key = "myapikey" + config.logger = Logger.new STDOUT + config.user_attributes = [:id, :name, :email, :username, :shoe_size] + """ + And I run `rails runner config/boot.rb` + Then I should see "Unsupported user attribute: 'shoe_size'" Scenario: It should log the notice when failure happens When Airbrake server is not responding And I configure the notifier to use the following configuration lines: """