Class: ElirJsonFormatter
- Inherits:
-
RSpec::Core::Formatters::BaseFormatter
- Object
- RSpec::Core::Formatters::BaseFormatter
- ElirJsonFormatter
- Defined in:
- lib/elir_json_formatter.rb
Instance Attribute Summary collapse
-
#output_hash ⇒ Object
readonly
Returns the value of attribute output_hash.
Instance Method Summary collapse
- #example_failed(failure) ⇒ Object
- #example_passed(passed) ⇒ Object
- #example_pending(pending) ⇒ Object
-
#initialize(output) ⇒ ElirJsonFormatter
constructor
A new instance of ElirJsonFormatter.
Constructor Details
#initialize(output) ⇒ ElirJsonFormatter
Returns a new instance of ElirJsonFormatter.
9 10 11 12 13 |
# File 'lib/elir_json_formatter.rb', line 9 def initialize(output) super @output_hash = {} @env_final = {} end |
Instance Attribute Details
#output_hash ⇒ Object (readonly)
Returns the value of attribute output_hash.
7 8 9 |
# File 'lib/elir_json_formatter.rb', line 7 def output_hash @output_hash end |
Instance Method Details
#example_failed(failure) ⇒ Object
23 24 25 |
# File 'lib/elir_json_formatter.rb', line 23 def example_failed(failure) process_example(failure.example) end |
#example_passed(passed) ⇒ Object
15 16 17 |
# File 'lib/elir_json_formatter.rb', line 15 def example_passed(passed) process_example(passed.example) end |
#example_pending(pending) ⇒ Object
19 20 21 |
# File 'lib/elir_json_formatter.rb', line 19 def example_pending(pending) process_example(pending.example) end |