File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments