Sha256: a76f89719c97dbea038416c3f0b5850056ab76ae4f106a7027a254eef4194582
Contents?: true
Size: 799 Bytes
Versions: 4
Compression:
Stored size: 799 Bytes
Contents
require File.dirname(__FILE__) + '/../../../spec_helper.rb' module Spec module Runner module Formatter describe "FailingBehavioursFormatter" do before(:each) do @io = StringIO.new @formatter = FailingBehavioursFormatter.new(@io) end it "should add example name for each failure" do @formatter.add_behaviour("b 1") @formatter.example_failed("e 1", nil, Reporter::Failure.new(nil, RuntimeError.new)) @formatter.add_behaviour("b 2") @formatter.example_failed("e 2", nil, Reporter::Failure.new(nil, RuntimeError.new)) @formatter.example_failed("e 3", nil, Reporter::Failure.new(nil, RuntimeError.new)) @io.string.should eql(<<-EOF b 1 b 2 EOF ) end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems