Sha256: df620995dceec93358520f90d94c0ad54cafdec82343c9a6b878f307056bf76d
Contents?: true
Size: 280 Bytes
Versions: 1
Compression:
Stored size: 280 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe TTY::Terminal, '#color' do it { expect(subject.color).to be_a(TTY::Terminal::Color) } it 'delegates color handling' do string = 'text' expect(subject.color.set(string, :red)).to eq("\e[31m#{string}\e[0m") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-0.1.0 | spec/tty/terminal/color_spec.rb |