Sha256: d088246e7ceca9c002b218a86bf428c223352005396edc38b07572fec9f024e1

Contents?: true

Size: 535 Bytes

Versions: 5

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'stringio'
require 'rainbow_insta_fail_formatter'

describe RainbowInstaFailFormatter do
  before(:all) do
    @output = StringIO.new
    @formatter = described_class.new(@output)
  end

  before(:each) do
    @formatter.start(1)
  end

  it 'displays failed tests immediately' do
    example = double :example
    expect(example).to receive(:fully_formatted).and_return('FAIL')
    @formatter.example_failed(example)
    expect(@output.string).to include('FAIL')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rainbow_formatter-0.2.0 spec/rainbow_insta_fail_formatter_spec.rb
rainbow_formatter-0.1.9 spec/rainbow_insta_fail_formatter_spec.rb
rainbow_formatter-0.1.8 spec/rainbow_insta_fail_formatter_spec.rb
rainbow_formatter-0.1.7 spec/rainbow_insta_fail_formatter_spec.rb
rainbow_formatter-0.1.5 spec/rainbow_insta_fail_formatter_spec.rb