Fix RuboCop offenses
Make Layout/SpaceInsideHashLiteralBraces cop happy. And also add rubocop-packaging for easy maintenance downstream. Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
This commit is contained in:
parent
aefb4cb092
commit
79f9493926
|
@ -1,3 +1,6 @@
|
|||
require:
|
||||
- rubocop-packaging
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.4
|
||||
DisabledByDefault: true
|
||||
|
|
1
Gemfile
1
Gemfile
|
@ -5,6 +5,7 @@ source 'https://rubygems.org'
|
|||
gemspec
|
||||
|
||||
gem "rubocop", require: false
|
||||
gem "rubocop-packaging", require: false
|
||||
|
||||
group :doc do
|
||||
gem 'rdoc'
|
||||
|
|
|
@ -537,7 +537,7 @@ class RackRequestTest < Minitest::Spec
|
|||
begin
|
||||
$VERBOSE = true
|
||||
req['foo'].must_equal 'quux'
|
||||
warn_arg.must_equal ["Request#[] is deprecated and will be removed in a future version of Rack. Please use request.params[] instead", {uplevel: 1}]
|
||||
warn_arg.must_equal ["Request#[] is deprecated and will be removed in a future version of Rack. Please use request.params[] instead", { uplevel: 1 }]
|
||||
ensure
|
||||
$VERBOSE = verbose
|
||||
end
|
||||
|
@ -582,7 +582,7 @@ class RackRequestTest < Minitest::Spec
|
|||
begin
|
||||
$VERBOSE = true
|
||||
req['foo'] = 'quux'
|
||||
warn_arg.must_equal ["Request#[]= is deprecated and will be removed in a future version of Rack. Please use request.params[]= instead", {uplevel: 1}]
|
||||
warn_arg.must_equal ["Request#[]= is deprecated and will be removed in a future version of Rack. Please use request.params[]= instead", { uplevel: 1 }]
|
||||
req.params['foo'].must_equal 'quux'
|
||||
ensure
|
||||
$VERBOSE = verbose
|
||||
|
|
Loading…
Reference in New Issue