Sha256: 07fc9faa12d3dbaea098ebdce5ed96ec2641e25e40aaaa3136f99584f2501d8b
Contents?: true
Size: 377 Bytes
Versions: 7
Compression:
Stored size: 377 Bytes
Contents
# frozen_string_literal: true RSpec.describe Strings::ANSI, "#ansi?" do it "does't report empty string" do expect(Strings::ANSI.ansi?("")).to eq(false) end it "reports non-ansi string correctly" do expect(Strings::ANSI.ansi?("foo")).to eq(false) end it "checks if code is ansi" do expect(Strings::ANSI.ansi?("\e[33;44mfoo\e[0m")).to eq(true) end end
Version data entries
7 entries across 7 versions & 1 rubygems