Sha256: 585eb4b47209f2e2f129020e98ad367289707b8b4d304b43745bf6e2b1751cac

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

class TestOutput

  attr_accessor :messages

  def initialize
    @messages = []
  end

  def puts(message)
    @messages << message
  end
end

describe 'dots formatter' do

  let(:output){TestOutput.new}
  let(:formatter){DotsFormatter.new(output)}

  it 'should set the default values' do
    expect(formatter.fails).to eq(0)
    expect(formatter.passes).to eq(0)
    expect(formatter.fails).to eq(0)
    expect(formatter.runs).to eq(0)
    expect(formatter.pendings).to eq(0)
    expect(formatter.debug).to eq(false)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dots_formatter-0.0.4 spec/dots_formatter/dots_spec.rb
dots_formatter-0.0.3 spec/dots_formatter/dots_spec.rb
dots_formatter-0.0.2 spec/dots_formatter/dots_spec.rb