Skip to content

Commit

Permalink
Enable New Rubocops cops and update offences
Browse files Browse the repository at this point in the history
  • Loading branch information
acant committed Nov 26, 2022
1 parent b35ad47 commit 480779b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ require: rubocop-rspec

AllCops:
TargetRubyVersion: 2.6
NewCops: enable

Metrics/LineLength:
Layout/LineLength:
Max: 100

Metrics/MethodLength:
Expand Down
2 changes: 1 addition & 1 deletion lib/rspec/tabular.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def it_with(*input_values, &block)
block = proc { is_expected.to eq(expected_value) }
end

context("with #{Hash[metadata[:inputs].zip input_values]}") do
context("with #{metadata[:inputs].zip(input_values).to_h}") do
metadata[:inputs].each_index do |i|
key = metadata[:inputs][i]
value = input_values[i]
Expand Down
3 changes: 2 additions & 1 deletion rspec-tabular.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 2.6.0'

spec.metadata['rubygems_mfa_required'] = 'true'

spec.add_runtime_dependency 'rspec-core', '>= 2.99.0'

spec.add_development_dependency 'bundler', '~> 1.7'
Expand Down

0 comments on commit 480779b

Please sign in to comment.