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.
@@ -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}.html", "w") do |f|
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
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: p8-metric_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4.12
4
+ version: 0.8.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Scruggs