Sha256: 39f9528edf1a1a12d982fb275ce867b0131e935a814cd85529de337c5aab79c4
Contents?: true
Size: 820 Bytes
Versions: 2
Compression:
Stored size: 820 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) module Danger describe Danger::DangerSimpleCovJson do it 'should be a plugin' do expect(Danger::DangerSimpleCovJson.new(nil)).to be_a Danger::Plugin end describe 'with Dangerfile' do before do @dangerfile = testing_dangerfile @simplecov = @dangerfile.simplecov end it 'Shows code coverage report' do @simplecov.report('spec/fixtures/coverage.json') expect(@dangerfile.status_report[:messages]).to eq(['Code coverage is now at 99.15% (1512/1525 lines)']) end it 'Fails if code coverage not found' do @simplecov.report('spec/fixtures/missing_file.json') expect(@dangerfile.status_report[:errors]).to eq(['Code coverage data not found']) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danger-simplecov_json-0.2.1 | spec/simplecov_json_spec.rb |
danger-simplecov_json-0.2.0 | spec/simplecov_json_spec.rb |