Skip to content

Commit

Permalink
Add SimpleCov 0.21 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Jan 3, 2021
1 parent 94c5d7b commit 4cbba14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion coveralls-ruby.gemspec
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |gem|

gem.required_ruby_version = '>= 2.4'

gem.add_dependency 'simplecov', '>= 0.18.1', '< 0.21.0'
gem.add_dependency 'simplecov', '>= 0.18.1', '< 0.22.0'
gem.add_dependency 'term-ansicolor', '~> 1.6'
gem.add_dependency 'thor', '>= 0.20.3', '< 2.0'
gem.add_dependency 'tins', '~> 1.16'
Expand Down
14 changes: 7 additions & 7 deletions spec/coveralls/simple_cov/formatter_spec.rb
Expand Up @@ -13,13 +13,13 @@ def source_fixture(filename)

let(:result) do
options = {
source_fixture('app/controllers/sample.rb') => [nil, 1, 1, 1, nil, 0, 1, 1, nil, nil],
source_fixture('app/models/airplane.rb') => [0, 0, 0, 0, 0],
source_fixture('app/models/dog.rb') => [1, 1, 1, 1, 1],
source_fixture('app/models/house.rb') => [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil],
source_fixture('app/models/robot.rb') => [1, 1, 1, 1, nil, nil, 1, 0, nil, nil],
source_fixture('app/models/user.rb') => [nil, 1, 1, 1, 1, 0, 1, 0, nil, nil],
source_fixture('sample.rb') => [nil, 1, 1, 1, nil, 0, 1, 1, nil, nil]
source_fixture('app/controllers/sample.rb') => { lines: [nil, 1, 1, 1, nil, 0, 1, 1, nil, nil] },
source_fixture('app/models/airplane.rb') => { lines: [0, 0, 0, 0, 0] },
source_fixture('app/models/dog.rb') => { lines: [1, 1, 1, 1, 1] },
source_fixture('app/models/house.rb') => { lines: [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil] },
source_fixture('app/models/robot.rb') => { lines: [1, 1, 1, 1, nil, nil, 1, 0, nil, nil] },
source_fixture('app/models/user.rb') => { lines: [nil, 1, 1, 1, 1, 0, 1, 0, nil, nil] },
source_fixture('sample.rb') => { lines: [nil, 1, 1, 1, nil, 0, 1, 1, nil, nil] }
}

SimpleCov::Result.new(options)
Expand Down

0 comments on commit 4cbba14

Please sign in to comment.