Sha256: b7a4d4c10aeba8869bc117e75a246ded5b26835c453330d918218c73756a3388
Contents?: true
Size: 559 Bytes
Versions: 27
Compression:
Stored size: 559 Bytes
Contents
describe Ppl::Adapter::Color::Colored do before(:each) do @adapter = Ppl::Adapter::Color::Colored.new end describe "#colorize" do it "should colorize the string using the monkeypatched String method" do string = "example" string.should_receive(:red).and_return("red example") @adapter.colorize(string, "red").should eq "red example" end it "should only attempt to colorize the string if the color exists" do string = "example" @adapter.colorize(string, "neon").should eq "example" end end end
Version data entries
27 entries across 27 versions & 1 rubygems