Skip to content

Commit

Permalink
Upgrade rubocop-rspec to version 1.39.0 (#61)
Browse files Browse the repository at this point in the history
* Update rubocop-rspec to version 1.39.0

* Fix rubocop

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Konstantin Munteanu <[email protected]>
  • Loading branch information
depfu[bot] and mkon authored May 5, 2020
1 parent 69ef037 commit 38b5c1e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ Layout/LeadingCommentSpace:
- '**/*.ru'
Layout/LineLength:
Max: 120
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true

Metrics/AbcSize:
Exclude:
- lib/api_valve/middleware/logging.rb
Expand All @@ -30,8 +37,16 @@ Style/ConditionalAssignment:
Enabled: false
Style/Documentation:
Enabled: false
Style/ExponentialNotation:
Enabled: true
Style/FormatString:
Enabled: false
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/FormatStringToken:
Enabled: false
Style/FrozenStringLiteralComment:
Expand Down
2 changes: 1 addition & 1 deletion api_valve.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rack-test', '~> 1.1'
s.add_development_dependency 'rspec', '~> 3.7'
s.add_development_dependency 'rubocop', '0.82.0'
s.add_development_dependency 'rubocop-rspec', '1.37.1'
s.add_development_dependency 'rubocop-rspec', '1.39.0'
s.add_development_dependency 'simplecov', '~> 0.16'
s.add_development_dependency 'timecop', '~> 0.9'
s.add_development_dependency 'webmock', '~> 3.4'
Expand Down
2 changes: 1 addition & 1 deletion spec/examples/permissions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
end
end

context 'when providing the api token' do
context 'when not providing the api token' do
it 'denies request' do
get '/api'
expect(last_response.status).to eq(403)
Expand Down

0 comments on commit 38b5c1e

Please sign in to comment.