spec/simplecov-markdown_spec.rb in simplecov-markdown-0.1.2 vs spec/simplecov-markdown_spec.rb in simplecov-markdown-0.1.3
- old
+ new
@@ -4,10 +4,10 @@
describe 'MarkdownFormatter' do
include_context "uses temp dir"
let(:formatter) do
- SimpleCov::Formatter::MarkdownFormatter.stub(:output_path).and_return(report_path)
+ allow(SimpleCov::Formatter::MarkdownFormatter).to receive(:output_path).and_return(report_path)
SimpleCov::Formatter::MarkdownFormatter.new
end
let(:report_path) { File.join(temp_dir_path, 'report.md') }
let(:expect_report) do
root_directory = File.dirname(__FILE__)