Skip to content

Commit

Permalink
Update RuboCop
Browse files Browse the repository at this point in the history
Also fixes a new offence
  • Loading branch information
tagliala committed Nov 24, 2020
1 parent 9906f60 commit 4465449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion route_translator.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'minitest', '~> 5.14'
spec.add_development_dependency 'rails', '>= 5.0.0.1', '< 6.2'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rubocop', '~> 1.3'
spec.add_development_dependency 'rubocop', '~> 1.4'
spec.add_development_dependency 'rubocop-performance', '~> 1.9'
spec.add_development_dependency 'rubocop-rails', '~> 2.8'
spec.add_development_dependency 'simplecov', '>= 0.18.5', '< 0.20'
Expand Down
2 changes: 1 addition & 1 deletion test/support/routes_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def draw_routes(&block)
end

def path_string(route)
path = route.respond_to?(:path) ? route.path : route.to_s.split(' ')[1]
path = route.respond_to?(:path) ? route.path : route.to_s.split[1]
path.respond_to?(:spec) ? path.spec.to_s : path.to_s
end

Expand Down

0 comments on commit 4465449

Please sign in to comment.