Sha256: 22b08032500d68cdf140e61a01a3443b1ff3d4b8c62d16f7d20de6881aa9c9be
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true require 'rspec_table_formatter/version' require_relative './table_builder' # main class for formatter class RspecTableFormatter class Error < StandardError; end @configs = Configurations.new RSpec::Core::Formatters.register self, :dump_summary def initialize(output) @output = output end def dump_summary(notification) examples = notification.examples @output << TableBuilder.new(examples, @configs).generate_table.to_s + "\n" end class << self def configure yield @configs if block_given? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec_table_formatter-0.1.13 | lib/rspec_table_formatter.rb |
rspec_table_formatter-0.1.11 | lib/rspec_table_formatter.rb |