Fix offenses newly reported by rubocop-rspec

The pessimistic version contraint on rubocop-rspec permitted minor version
updates of the dependency, which broke the tests again since version 2.9.0
introduced / changed offenses.

Allow only the patch version to increase automatically to avoid this in the future.
This commit is contained in:
Claudio Bley 2022-02-28 21:37:11 +01:00
parent e51a15a027
commit 6b35f942aa
3 changed files with 3 additions and 3 deletions

View file

@ -79,7 +79,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rubocop', '~> 1.22.0'
spec.add_development_dependency 'rubocop-performance', '~> 1.13.0'
spec.add_development_dependency 'rubocop-rake', '~> 0.5'
spec.add_development_dependency 'rubocop-rspec', '~> 2.0'
spec.add_development_dependency 'rubocop-rspec', '~> 2.9.0'
spec.add_development_dependency 'rubygems-tasks', '~> 0'
spec.add_development_dependency 'simplecov', '~> 0.21.2'
end

View file

@ -17,7 +17,7 @@ RSpec.describe ColorLS::Yaml do
let(:checker) { YamlSortChecker.new("#{base_directory}/#{filename}.yaml") }
it 'is sorted correctly' do
expect(checker.sorted?(sort_type)).to eq true
expect(checker.sorted?(sort_type)).to be true
end
end
end

View file

@ -4,6 +4,6 @@ require 'spec_helper'
RSpec.describe ColorLS do
it 'has a version number' do
expect(ColorLS::VERSION).not_to be nil
expect(ColorLS::VERSION).not_to be_nil
end
end