Sha256: 3d51b894b470560f1b5ec4982065290955034cc0327be3c2f34ea24e28388235
Contents?: true
Size: 594 Bytes
Versions: 9
Compression:
Stored size: 594 Bytes
Contents
require "spec_helper" MetricFu.metrics_require { "hotspots/metric" } MetricFu.metrics_require { "hotspots/hotspot" } MetricFu.metrics_require { "hotspots/analysis/record" } MetricFu.metrics_require { "rcov/hotspot" } describe MetricFu::RcovHotspot do describe "map" do let(:zero_row) do MetricFu::Record.new({ "percentage_uncovered" => 0.0 }, nil) end let(:non_zero_row) do MetricFu::Record.new({ "percentage_uncovered" => 0.75 }, nil) end it { expect(subject.map(zero_row)).to eql(0.0) } it { expect(subject.map(non_zero_row)).to eql(0.75) } end end
Version data entries
9 entries across 9 versions & 3 rubygems