Sha256: 267c7c6fd5dfe9a44be1324ec3a816cc6d9558ae76af2b56928a5c54bcc5ad26
Contents?: true
Size: 429 Bytes
Versions: 7
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
7 entries across 7 versions & 1 rubygems