forked from airbrake/airbrake
/
rake.feature
23 lines (18 loc) · 859 Bytes
/
rake.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Feature: Use the Gem to catch errors in a Rake application
Background:
Given I have built and installed the "airbrake" gem
Scenario: Catching exceptions in Rake
When I run rake with airbrake
Then Airbrake should catch the exception
Scenario: Disabling Rake exception catcher
When I run rake with airbrake disabled
Then Airbrake should not catch the exception
Scenario: Autodetect, running from terminal
When I run rake with airbrake autodetect from terminal
Then Airbrake should not catch the exception
Scenario: Autodetect, not running from terminal
When I run rake with airbrake autodetect not from terminal
Then Airbrake should catch the exception
Scenario: Sendind the correct component name
When I run rake with airbrake
Then Airbrake should send the rake command line as the component name