Skip to content

Commit

Permalink
Specify testing context of Ruby 2.7 for Performance/BindCall
Browse files Browse the repository at this point in the history
This PR prepares for rubocop#112 and makes the `rake spec` successful
with RuboCop 0.71, which is supported by RuboCop Performance 1.6.

This is a workaround until the CI is ready for RuboCop Performance 1.7.
RuboCop Performance 1.7 will drop some older RuboCop support versions.
  • Loading branch information
koic committed May 22, 2020
1 parent 7caf6f5 commit e3baf71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/rubocop/cop/performance/bind_call_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# frozen_string_literal: true

RSpec.describe RuboCop::Cop::Performance::BindCall, :config do
# TODO: The following is no longer required when RuboCop 0.78 or lower support will be dropped.
# /~https://github.com/rubocop-hq/rubocop/pull/7605
let(:ruby_version) { 2.7 }

subject(:cop) { described_class.new(config) }

context 'TargetRubyVersion <= 2.6', :ruby26 do
Expand Down

0 comments on commit e3baf71

Please sign in to comment.