diff --git a/Gemfile.lock b/Gemfile.lock index a0c7c02..27ee117 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,31 +2,32 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.2) - parallel (1.20.1) - parser (3.0.1.0) + json (2.6.2) + parallel (1.22.1) + parser (3.1.2.1) ast (~> 2.4.1) - rainbow (3.0.0) - regexp_parser (2.1.1) + rainbow (3.1.1) + regexp_parser (2.6.0) rexml (3.2.5) - rubocop (1.13.0) + rubocop (1.36.0) + json (~> 2.3) parallel (~> 1.10) - parser (>= 3.0.0.0) + parser (>= 3.1.2.1) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.2.0, < 2.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.20.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.4.1) - parser (>= 2.7.1.5) - rubocop-discourse (2.4.1) + rubocop-ast (1.21.0) + parser (>= 3.1.1.0) + rubocop-discourse (3.0) rubocop (>= 1.1.0) rubocop-rspec (>= 2.0.0) - rubocop-rspec (2.2.0) - rubocop (~> 1.0) - rubocop-ast (>= 1.1.0) + rubocop-rspec (2.13.2) + rubocop (~> 1.33) ruby-progressbar (1.11.0) - unicode-display_width (2.0.0) + unicode-display_width (2.3.0) PLATFORMS ruby @@ -35,4 +36,4 @@ DEPENDENCIES rubocop-discourse BUNDLED WITH - 2.2.16 + 2.3.4 diff --git a/spec/requests/docs_controller_spec.rb b/spec/requests/docs_controller_spec.rb index e12daef..136a9d1 100644 --- a/spec/requests/docs_controller_spec.rb +++ b/spec/requests/docs_controller_spec.rb @@ -137,7 +137,7 @@ describe Docs::DocsController do end context 'when ordering results' do - context 'by title' do + describe 'by title' do it 'should return the list ordered descending' do get "/docs.json?order=title" @@ -163,7 +163,7 @@ describe Docs::DocsController do end end - context 'by date' do + describe 'by date' do before do topic2.update(last_posted_at: Time.zone.now + 100) end