Upgrade dependency "regexp_parser"

This commit is contained in:
Alex Kotov 2021-01-17 07:03:10 +05:00
parent 99dc05187e
commit f4c00e429b
3 changed files with 3 additions and 7 deletions

View file

@ -14,7 +14,7 @@ PATH
morpher (~> 0.2.6)
parser (~> 2.5, >= 2.5.1)
procto (~> 0.0.2)
regexp_parser (~> 1.2)
regexp_parser (~> 1.7, >= 1.7.1)
unparser (~> 0.4.2)
mutant-rspec (0.8.24)
mutant (~> 0.8.24)

View file

@ -33,7 +33,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency('morpher', '~> 0.2.6')
gem.add_runtime_dependency('parser', '~> 2.5', '>= 2.5.1')
gem.add_runtime_dependency('procto', '~> 0.0.2')
gem.add_runtime_dependency('regexp_parser', '~> 1.2')
gem.add_runtime_dependency('regexp_parser', '~> 1.7', '>= 1.7.1')
gem.add_runtime_dependency('unparser', '~> 0.4.2')
gem.add_development_dependency('parallel', '~> 1.3')

View file

@ -13,11 +13,7 @@ RSpec.describe Mutant::AST::Regexp, '.parse' do
context 'on regexp regexp_parser does not accept' do
it 'returns nil' do
if Regexp::Parser::VERSION >= '1.7.1'
expect(apply(/u{/).to_re).to eql(/u{/)
else
expect(apply(/u{/)).to be(nil)
end
expect(apply(/u{/).to_re).to eql(/u{/)
end
end
end