p8-metric_fu 0.8.4.12 → 0.8.4.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/metric_fu/base.rb +2 -2
- data/spec/base_spec.rb +1 -1
- metadata +1 -1
data/lib/metric_fu/base.rb
CHANGED
@@ -30,8 +30,8 @@ module MetricFu
|
|
30
30
|
self.new(base_dir, options).generate_report
|
31
31
|
end
|
32
32
|
|
33
|
-
def save_html(content, file='index')
|
34
|
-
open("#{@base_dir}/#{file}
|
33
|
+
def save_html(content, file='index.html')
|
34
|
+
open("#{@base_dir}/#{file}", "w") do |f|
|
35
35
|
f.puts content
|
36
36
|
end
|
37
37
|
end
|
data/spec/base_spec.rb
CHANGED
@@ -11,7 +11,7 @@ describe MetricFu::Base::Generator do
|
|
11
11
|
it "should save to a custom.html to the base_dir if 'custom' is passed as name" do
|
12
12
|
@generator = MetricFu::Base::Generator.new('base_dir')
|
13
13
|
@generator.should_receive(:open).with("base_dir/metric_fu/custom.html", "w")
|
14
|
-
@generator.save_html("<html>", 'metric_fu/custom')
|
14
|
+
@generator.save_html("<html>", 'metric_fu/custom.html')
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|