Sha256: d161bad99a40c42db7fd9f3de384cc9ee2881ca66f6dc4806866d1c94c523730

Contents?: true

Size: 624 Bytes

Versions: 9

Compression:

Stored size: 624 Bytes

Contents

require "spec_helper"
MetricFu.lib_require { "templates/report" }

describe MetricFu::Templates::Report do
  # TODO: This test only shows how the code works and that it doesn't blow up.
  # Perhaps it should test something more specific?
  it "Reads in a source file, and produces an annotated HTML report" do
    lines = { "2" => [{ type: :reek, description: "Bad Param Names" }] }
    source_file = File.join(MetricFu.root_dir, "spec", "dummy", "lib", "bad_encoding.rb")
    report = MetricFu::Templates::Report.new(source_file, lines)
    expect {
      rendered_report = report.render
    }.not_to raise_error
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

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