Method: InspecRspecJson#stop
- Defined in:
- lib/inspec/rspec_json_formatter.rb
#stop(notification) ⇒ Object
126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/inspec/rspec_json_formatter.rb', line 126 def stop(notification) super(notification) examples = @output_hash.delete(:controls) missing = [] examples.each do |example| control = example2control(example, @profiles_info) next missing.push(example) if control.nil? dump_one_example(example, control) end @output_hash[:profiles] = @profiles_info @output_hash[:other_checks] = missing end |