diff --git a/spec/project_spec.rb b/spec/project_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/project_spec.rb
+++ b/spec/project_spec.rb
@@ -191,14 +191,14 @@ RSpec.describe 'RuboCop Project', type: :feature do
 
   describe 'requiring all of `lib` with verbose warnings enabled' do
     it 'emits no warnings' do
-      whitelisted = lambda do |line|
+      allowed = lambda do |line|
         line =~ /warning: private attribute\?$/ && RUBY_VERSION < '2.3'
       end
 
       warnings = `ruby -Ilib -w -W2 lib/rubocop.rb 2>&1`
                  .lines
                  .grep(%r{/lib/rubocop}) # ignore warnings from dependencies
-                 .reject(&whitelisted)
+                 .reject(&allowed)
       expect(warnings.empty?).to be(true)
     end
   end
Follow Rails lead on naming

See rails/rails#<I>.