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

Version Path
metric_fu-4.13.0 spec/metric_fu/utility_spec.rb
fastruby-metric_fu-5.0.0 spec/metric_fu/utility_spec.rb
code_metric_fu-4.14.4 spec/metric_fu/utility_spec.rb
code_metric_fu-4.14.3 spec/metric_fu/utility_spec.rb
code_metric_fu-4.14.2 spec/metric_fu/utility_spec.rb
code_metric_fu-4.14.1 spec/metric_fu/utility_spec.rb
code_metric_fu-4.14.0 spec/metric_fu/utility_spec.rb
metric_fu-4.12.0 spec/metric_fu/utility_spec.rb
metric_fu-4.11.4 spec/metric_fu/utility_spec.rb