Sha256: 61e4aad4c939b548b7b791e844d57531c0a7e43d3d2765e79df113cb2f168ede

Contents?: true

Size: 321 Bytes

Versions: 6

Compression:

Stored size: 321 Bytes

Contents

require 'nc'

class NcFail < Nc
  if rspec_3?
    RSpec::Core::Formatters.register self, :example_failed
  end

  def say(title, body)
    @failed_examples ||= []
    return if @failed_examples.size <= 0
    super
  end

  def example_failed(failure)
    @failed_examples ||= []
    @failed_examples << failure
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rspec-nc-0.2.1 lib/nc_fail.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/rspec-nc-0.2.0/lib/nc_fail.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/rspec-nc-0.2.0/lib/nc_fail.rb
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/rspec-nc-0.2.0/lib/nc_fail.rb
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/rspec-nc-0.2.0/lib/nc_fail.rb
rspec-nc-0.2.0 lib/nc_fail.rb