Sha256: 14968da4531f3db61ffcff26c3d70f2a1c4644944b7fb748632afb0f6f0d098b
Contents?: true
Size: 309 Bytes
Versions: 97
Compression:
Stored size: 309 Bytes
Contents
require 'spec_helper' require 'rainbow' RSpec.describe 'uncolor method' do it 'strips ansi color escape code' do expect(Rainbow.uncolor("\e[35mhello\e[0mm")).to eq 'hellom' end it 'does not strip scroll down escape code' do expect(Rainbow.uncolor("\e[1Thello")).to eq "\e[1Thello" end end
Version data entries
97 entries across 90 versions & 19 rubygems