Class: ElirJsonFormatter

Inherits:
RSpec::Core::Formatters::BaseFormatter
  • Object
show all
Defined in:
lib/elir_json_formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_hashObject (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