Skip to content

Commit 0e654be

Browse files
Adhere to TRU compliance (#337)
1 parent 507e7ce commit 0e654be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/intercom-rails/auto_include_filter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ def intercom_rails_auto_include
1111

1212
class Filter
1313
CLOSING_BODY_TAG = "</body>"
14-
BLACKLISTED_CONTROLLER_NAMES = %w{ Devise::PasswordsController }
14+
BLOCKED_CONTROLLER_NAMES = %w{ Devise::PasswordsController }
1515

1616
def self.filter(controller)
17-
return if BLACKLISTED_CONTROLLER_NAMES.include?(controller.class.name)
17+
return if BLOCKED_CONTROLLER_NAMES.include?(controller.class.name)
1818
auto_include_filter = new(controller)
1919
return unless auto_include_filter.include_javascript?
2020

spec/auto_include_filter_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ def current_user
199199
expect(response.body).to eq("<body>Hello world</body>")
200200
end
201201

202-
it 'does not inject if blacklisted controller' do
203-
stub_const("IntercomRails::AutoInclude::Filter::BLACKLISTED_CONTROLLER_NAMES", ["TestController"])
202+
it 'does not inject if blocked controller' do
203+
stub_const("IntercomRails::AutoInclude::Filter::BLOCKED_CONTROLLER_NAMES", ["TestController"])
204204
get :with_current_user_method
205205
expect(response.body).to eq("<body>Hello world</body>")
206206
end

0 commit comments

Comments
 (0)