Class: CiSlack::Rspec::Notifier::Example
- Inherits:
-
Object
- Object
- CiSlack::Rspec::Notifier::Example
- Defined in:
- lib/ci_slack/rspec/notifier.rb
Instance Method Summary collapse
-
#initialize(example) ⇒ Example
constructor
A new instance of Example.
- #to_s ⇒ Object
Constructor Details
#initialize(example) ⇒ Example
Returns a new instance of Example.
18 19 20 |
# File 'lib/ci_slack/rspec/notifier.rb', line 18 def initialize(example) @example = example end |
Instance Method Details
#to_s ⇒ Object
22 23 24 25 26 27 |
# File 'lib/ci_slack/rspec/notifier.rb', line 22 def to_s %(\n*Failed test:* > Scenario: _#{ description }_ > File: #{ error_location } > Error: ```#{ error }```\n) end |