Sha256: 64ad4be6fa6f1a5783c4b440d053e065cb0b2dddddc28068b0e2997094d07f59
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
describe 'Paint.mode' do it "works normally if mode is 256 or another unknown true value" do Paint.mode = 256 Paint['J-_-L', 'gold'].should == "\e[38;5;226mJ-_-L\e[0m" end it "doesn't colorize anything if mode is false" do Paint.mode = false Paint['J-_-L', 'gold'].should == "J-_-L" end it "only uses the 8 ansi colors if mode is 8" do Paint.mode = 8 Paint['J-_-L', 'gold'].should == "\e[33mJ-_-L\e[0m" end it "only uses the 8 ansi colors with bright effect if mode is 16" do Paint.mode = 16 Paint['J-_-L', 'gold'].should == "\e[33;1mJ-_-L\e[0m" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paint-0.8.2 | spec/paint_mode_spec.rb |
paint-0.8.1 | spec/paint_mode_spec.rb |