From 89a758e2114ab45cd6b58bb50180924ff805d967 Mon Sep 17 00:00:00 2001 From: anvox Date: Thu, 21 May 2020 15:52:22 +0700 Subject: [PATCH] Upgrade to reek 6.0.0. Make test ignore reek version --- pronto-reek.gemspec | 2 +- spec/pronto/reek_spec.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pronto-reek.gemspec b/pronto-reek.gemspec index 7237d1c..d490015 100644 --- a/pronto-reek.gemspec +++ b/pronto-reek.gemspec @@ -33,7 +33,7 @@ Gem::Specification.new do |s| s.require_paths = ['lib'] s.add_dependency('pronto', '~> 0.10.0') - s.add_dependency('reek', '>= 4.2', '< 6.0') + s.add_dependency('reek', '>= 4.2', '< 7.0') s.add_development_dependency('rake', '~> 12.0') s.add_development_dependency('rspec', '~> 3.4') s.add_development_dependency('rspec-its', '~> 1.2') diff --git a/spec/pronto/reek_spec.rb b/spec/pronto/reek_spec.rb index 110b635..96c3164 100644 --- a/spec/pronto/reek_spec.rb +++ b/spec/pronto/reek_spec.rb @@ -24,13 +24,13 @@ module Pronto its(:count) { should == 2 } its(:'first.msg') do - should == - "Has the parameter name 'n' - [UncommunicativeParameterName](https://github.com/troessner/reek/blob/v5.6.0/docs/Uncommunicative-Parameter-Name.md)" + should \ + match(/Has the parameter name 'n' - \[UncommunicativeParameterName\]\(https:\/\/github.com\/troessner\/reek\/blob\/v\d+\.\d+\.\d+\/docs\/Uncommunicative-Parameter-Name.md\)/) end its(:'last.msg') do - should == - "Has the variable name '@n' - [UncommunicativeVariableName](https://github.com/troessner/reek/blob/v5.6.0/docs/Uncommunicative-Variable-Name.md)" + should \ + match(/Has the variable name '@n' - \[UncommunicativeVariableName\]\(https:\/\/github.com\/troessner\/reek\/blob\/v\d+\.\d+\.\d+\/docs\/Uncommunicative-Variable-Name.md\)/) end end