diff --git a/Gemfile b/Gemfile index 609e4e959..83f125312 100644 --- a/Gemfile +++ b/Gemfile @@ -140,7 +140,7 @@ group :development, :test do gem "pry", "~> 0.14" # An IRB alternative and runtime developer console gem "pry-rails", "~> 0.3" # Use Pry as your rails console gem "rspec-rails", "~> 5.0" # rspec-rails is a testing framework for Rails 3+ - gem "rubocop", "~> 1.24", require: false # Automatic Ruby code style checking tool + gem "rubocop", "~> 1.25", require: false # Automatic Ruby code style checking tool gem "rubocop-performance", "~> 1.13", require: false # A collection of RuboCop cops to check for performance optimizations in Ruby code gem "rubocop-rails", "~> 2.13", require: false # Automatic Rails code style checking tool gem "rubocop-rspec", "~> 2.7", require: false # Code style checking for RSpec files diff --git a/Gemfile.lock b/Gemfile.lock index 0bc829247..639c082ba 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -688,9 +688,9 @@ GEM rspec-support (3.10.2) rss (0.2.9) rexml - rubocop (1.24.1) + rubocop (1.25.0) parallel (~> 1.10) - parser (>= 3.0.0.0) + parser (>= 3.1.0.0) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml @@ -1008,7 +1008,7 @@ DEPENDENCIES rspec-rails (~> 5.0) rspec-retry (~> 0.6) rss (~> 0.2.9) - rubocop (~> 1.24) + rubocop (~> 1.25) rubocop-performance (~> 1.13) rubocop-rails (~> 2.13) rubocop-rspec (~> 2.7) diff --git a/spec/requests/stories/tagged_articles_spec.rb b/spec/requests/stories/tagged_articles_spec.rb index 46d0915a5..aaabbab63 100644 --- a/spec/requests/stories/tagged_articles_spec.rb +++ b/spec/requests/stories/tagged_articles_spec.rb @@ -63,7 +63,7 @@ RSpec.describe "Stories::TaggedArticlesIndex", type: :request do it "renders page when tag is not supported but has at least one approved article" do unsupported_tag = create(:tag, supported: false) - article = create(:article, published: true, approved: true, tags: unsupported_tag) + create(:article, published: true, approved: true, tags: unsupported_tag) get "/t/#{unsupported_tag.name}/top/week" expect(response.body).to include(unsupported_tag.name) diff --git a/vendor/cache/rubocop-1.24.1.gem b/vendor/cache/rubocop-1.24.1.gem deleted file mode 100644 index 597739330..000000000 Binary files a/vendor/cache/rubocop-1.24.1.gem and /dev/null differ diff --git a/vendor/cache/rubocop-1.25.0.gem b/vendor/cache/rubocop-1.25.0.gem new file mode 100644 index 000000000..2a6a3dc83 Binary files /dev/null and b/vendor/cache/rubocop-1.25.0.gem differ