Sha256: 889df67237669782c74eb745fb3be061b0efd55edf0917bb84d6c2e8b8b80a15

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

require "spec_helper"

module Bickle
  describe ColorDecorator do
    it "applies colors to the output" do
      build = mock("Build", :"pass?" => true, :result => 0)
      shell = mock("Shell")
      shell.should_receive(:set_color).with(build.result, :green) { "_PASS_" }

      decorator = ColorDecorator.new(build, shell)
      decorator.result.should include("_PASS_")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bickle-0.0.1 spec/color_decorator_spec.rb