Sha256: cd7e42475a970311b9f9a1d1be20ce5914c99777ba4ed742e2c6ca380e518791
Contents?: true
Size: 627 Bytes
Versions: 25
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true RSpec::Support.require_rspec_core('formatters/json_formatter') # based on https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/formatters/json_formatter.rb module KnapsackPro module Formatters class RSpecJsonFormatter < ::RSpec::Core::Formatters::JsonFormatter ::RSpec::Core::Formatters.register self private # add example.id to json report to support < RSpec 3.6.0 # based on https://github.com/rspec/rspec-core/pull/2369/files def format_example(example) super.merge({ :id => example.id, }) end end end end
Version data entries
25 entries across 25 versions & 1 rubygems