Sha256: 77cdd4bcad2badfba51dbb487c59382730606f39db7fc2988f36119b5a70e704

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '../../../spec_helper')

module Spackle::Spec
  describe BaseFormatter do
    it "should initialize errors to an empty array" do
      BaseFormatter.new(nil,nil).errors.should == []
    end
    
    it "should notify Spackle of the finished test along with the errors on close" do
      Spackle.should_receive(:test_finished).with([])
      BaseFormatter.new(nil,nil).close
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spackle-0.0.3 spec/spackle/spec/base_formatter_spec.rb
spackle-0.0.2 spec/spackle/spec/base_formatter_spec.rb
spackle-0.0.1 spec/spackle/spec/base_formatter_spec.rb