Skip to content

Commit 1de5663

Browse files
fbacallCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b36c528 commit 1de5663

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/helpers/search_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def clear_filters_path
1010
end
1111

1212
def facet_title(name, value, html_options = {})
13-
lang = render_language_name(value) if name == 'language'
13+
lang = render_language_name(value) if name.to_s == 'language'
1414
return lang unless lang.blank?
1515

1616
html_options.delete(:title) || truncate(value.to_s, length: 50)

test/controllers/users_controller_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ class UsersControllerTest < ActionController::TestCase
469469
refute assigns(:users).include?(users(:basic_user))
470470
end
471471

472-
test 'should get edit for trainers feature enabled' do
472+
test "should get edit for trainers feature enabled" do
473473
user = users(:trainer_user)
474474
sign_in(user)
475475
get :edit, params: { id: user }

0 commit comments

Comments
 (0)