Sha256: 9af9c3da7f326534c832f4bea4d8c43f715bce7a09cc750f766cb74565268d73
Contents?: true
Size: 472 Bytes
Versions: 5
Compression:
Stored size: 472 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 '#green, #red, #colorize' do 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 end end
Version data entries
5 entries across 5 versions & 1 rubygems