Sha256: 2747faf77b75c0264325ab84d5597b404bc25091d27a4443fe7a733c5d8c7a7f
Contents?: true
Size: 835 Bytes
Versions: 2
Compression:
Stored size: 835 Bytes
Contents
require 'spec_helper' describe CMSScanner::Formatter::Cli do subject(:formatter) { described_class.new } describe '#format' do its(:format) { should eq 'cli' } end describe '#bold, #red, #green, #amber, #blue, #colorize' do it 'returns the correct bold string' do expect(formatter.bold('Text')).to eq "\e[1mText\e[0m" end it 'returns the correct red string' do expect(formatter.red('Text')).to eq "\e[31mText\e[0m" end it 'returns the correct green string' do expect(formatter.green('Another Text')).to eq "\e[32mAnother Text\e[0m" end it 'returns the correct amber string' do expect(formatter.amber('Text')).to eq "\e[33mText\e[0m" end it 'returns the correct blue string' do expect(formatter.blue('Text')).to eq "\e[34mText\e[0m" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cms_scanner-0.0.14 | spec/app/formatters/cli_spec.rb |
cms_scanner-0.0.13 | spec/app/formatters/cli_spec.rb |