File: 0002-fix-RuboCop-ValidationError.patch

package info (click to toggle)
ruby-rubocop-performance 1.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 792 kB
  • sloc: ruby: 6,722; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 932 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Koichi ITO <koic.ito@gmail.com>
Description: Fix a build error
Origin: upstream, https://github.com/rubocop/rubocop-performance/commit/0e59891922fd5dabb0735c5e41ab4335ce513be4
Last-Update: 2020-12-10

Index: ruby-rubocop-performance/spec/project_spec.rb
===================================================================
--- ruby-rubocop-performance.orig/spec/project_spec.rb
+++ ruby-rubocop-performance/spec/project_spec.rb
@@ -4,6 +4,10 @@ RSpec.describe 'RuboCop Performance Proj
   describe 'default configuration file' do
     subject(:config) { RuboCop::ConfigLoader.load_file('config/default.yml') }
 
+    before do
+      allow_any_instance_of(RuboCop::Config).to receive(:loaded_features).and_return('rubocop-performance') # rubocop:disable RSpec/AnyInstance
+    end
+
     let(:registry) { RuboCop::Cop::Cop.registry }
     let(:cop_names) do
       registry.with_department(:Performance).cops.map(&:cop_name)