Sha256: 10a070274336856c25415ba84b72a611093438a35fd49f6d9de3636e70381c39
Contents?: true
Size: 429 Bytes
Versions: 9
Compression:
Stored size: 429 Bytes
Contents
require "spec_helper" require "metric_fu/utility" describe MetricFu::Utility do it "strips ANSI escape codes from text" do text = "\e[31m./app/models/account.rb:64 - Found = in conditional. It should probably be an ==\e[0m" output = "./app/models/account.rb:64 - Found = in conditional. It should probably be an ==" result = MetricFu::Utility.strip_escape_codes(text) expect(result).to eq(output) end end
Version data entries
9 entries across 9 versions & 3 rubygems