Sha256: f59896f13edc73c3cac7af7ef426b414730cb6d1aec5d78473f9c44996b52e8c

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

require 'nc'

class NcFirstFail < Nc
  def example_failed(example)
    if @failed_examples.size == 0
      name = File.basename(File.expand_path '.')
      say "\u26D4 #{name}: Failure", "#{example.metadata[:full_description]}\n#{example.exception}"
    end
    super
  end

  def dump_summary(duration, example_count, failure_count, pending_count)
    super if failure_count == 0
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-nc-0.0.6 lib/nc_first_fail.rb