File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 2828 run : bundle info rubocop | head -1
2929 - name : RuboCop and Tests
3030 run : bundle exec rake
31+ env :
32+ CHECKING_RUBOCOP_VERSION_COMPATIBILITY : ${{ matrix.gemfile == 'gemfiles/minimum_rubocop.gemfile' }}
Original file line number Diff line number Diff line change 77
88class ConfigTest < Minitest ::Test
99 def test_config_is_unchanged
10+ skip if checking_rubocop_version_compatibility?
11+
1012 Rake . application . load_rakefile
1113
1214 original_config = "test/fixtures/full_config.yml"
@@ -32,6 +34,8 @@ def test_config_is_unchanged
3234 end
3335
3436 def test_config_has_no_redundant_entries
37+ skip if checking_rubocop_version_compatibility?
38+
3539 config = RuboCop ::ConfigLoader . load_file ( "rubocop.yml" )
3640 default_config = RuboCop ::ConfigLoader . default_configuration
3741 redundant_config = Hash . new { |hash , key | hash [ key ] = { } }
@@ -57,4 +61,10 @@ def test_config_has_no_redundant_entries
5761
5862 assert ( redundant_config . empty? , error_message )
5963 end
64+
65+ private
66+
67+ def checking_rubocop_version_compatibility?
68+ ENV . fetch ( "CHECKING_RUBOCOP_VERSION_COMPATIBILITY" , "" ) == "true"
69+ end
6070end
You can’t perform that action at this time.
0 commit comments