Skip to content

Commit 57c2fd4

Browse files
committed
Tweak terms
Follow up rubocop@1f380d2.
1 parent 3e3c62f commit 57c2fd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rubocop/cop/rails/dynamic_find_by_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
expect_no_offenses('Post.find_by_title_and_id("foo", limit: 1)')
147147
end
148148

149-
it 'accepts method in whitelist' do
149+
it 'accepts method in allowed list' do
150150
expect_no_offenses(<<~RUBY)
151151
User.find_by_sql(["select * from users where name = ?", name])
152152
RUBY
@@ -201,7 +201,7 @@ def do_something
201201
{ 'AllowedReceivers' => %w[Gem::Specification] }
202202
end
203203

204-
it 'accepts dynamic find_by for receiver names in whitelist' do
204+
it 'accepts dynamic find_by for receiver names in allowed list' do
205205
expect_no_offenses(<<~RUBY)
206206
Gem::Specification.find_by_name("backend").gem_dir
207207
RUBY

0 commit comments

Comments
 (0)