DEV: Bump rubocop-discourse (#106)

* DEV: Bump rubocop-discourse

* Fix rubocop violations
This commit is contained in:
David Taylor 2022-10-03 21:20:09 +01:00 committed by GitHub
parent 9cffc3e479
commit d941844fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 18 deletions

View File

@ -2,31 +2,32 @@ GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
ast (2.4.2) ast (2.4.2)
parallel (1.20.1) json (2.6.2)
parser (3.0.1.0) parallel (1.22.1)
parser (3.1.2.1)
ast (~> 2.4.1) ast (~> 2.4.1)
rainbow (3.0.0) rainbow (3.1.1)
regexp_parser (2.1.1) regexp_parser (2.6.0)
rexml (3.2.5) rexml (3.2.5)
rubocop (1.13.0) rubocop (1.36.0)
json (~> 2.3)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.0.0.0) parser (>= 3.1.2.1)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0) regexp_parser (>= 1.8, < 3.0)
rexml rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.2.0, < 2.0) rubocop-ast (>= 1.20.1, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0) unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.4.1) rubocop-ast (1.21.0)
parser (>= 2.7.1.5) parser (>= 3.1.1.0)
rubocop-discourse (2.4.1) rubocop-discourse (3.0)
rubocop (>= 1.1.0) rubocop (>= 1.1.0)
rubocop-rspec (>= 2.0.0) rubocop-rspec (>= 2.0.0)
rubocop-rspec (2.2.0) rubocop-rspec (2.13.2)
rubocop (~> 1.0) rubocop (~> 1.33)
rubocop-ast (>= 1.1.0)
ruby-progressbar (1.11.0) ruby-progressbar (1.11.0)
unicode-display_width (2.0.0) unicode-display_width (2.3.0)
PLATFORMS PLATFORMS
ruby ruby
@ -35,4 +36,4 @@ DEPENDENCIES
rubocop-discourse rubocop-discourse
BUNDLED WITH BUNDLED WITH
2.2.16 2.3.4

View File

@ -137,7 +137,7 @@ describe Docs::DocsController do
end end
context 'when ordering results' do context 'when ordering results' do
context 'by title' do describe 'by title' do
it 'should return the list ordered descending' do it 'should return the list ordered descending' do
get "/docs.json?order=title" get "/docs.json?order=title"
@ -163,7 +163,7 @@ describe Docs::DocsController do
end end
end end
context 'by date' do describe 'by date' do
before do before do
topic2.update(last_posted_at: Time.zone.now + 100) topic2.update(last_posted_at: Time.zone.now + 100)
end end