File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ komagata:
3030 updated_at : " 2014-01-01 00:00:01"
3131 created_at : " 2014-01-01 00:00:01"
3232 last_activity_at : " 2014-01-01 00:00:01"
33- hide_mentor_profile : false
33+ show_mentor_profile : true
3434 profile_name : " 駒形 真幸"
3535 profile_job : " エンジニア"
3636 profile_text : " 株式会社ロッカの代表兼エンジニア。Rubyが大好きで怖話、フィヨルドブートキャンプなどを開発している。"
Original file line number Diff line number Diff line change @@ -349,17 +349,17 @@ class Admin::UsersTest < ApplicationSystemTestCase
349349 assert_text 'メンター紹介用公開プロフィール'
350350 end
351351
352- test 'administrator can update hide profile of mentor' do
352+ test 'administrator can update show profile of mentor' do
353353 user = users ( :mentormentaro )
354354 visit_with_auth "/admin/users/#{ user . id } /edit" , 'komagata'
355355 assert_text 'メンター紹介用公開プロフィール'
356- assert_no_checked_field ( 'user_hide_mentor_profile ', visible : false )
357- check 'user_hide_mentor_profile ', allow_label_click : true , visible : false
358- assert has_checked_field? ( 'user_hide_mentor_profile ', visible : false )
356+ assert has_checked_field? ( 'user_show_mentor_profile ', visible : false )
357+ uncheck 'user_show_mentor_profile ', allow_label_click : true , visible : false
358+ assert_no_checked_field ( 'user_show_mentor_profile ', visible : false )
359359 click_on '更新する'
360360 assert_text 'ユーザー情報を更新しました'
361361 visit_with_auth "/admin/users/#{ user . id } /edit" , 'komagata'
362- assert has_checked_field? ( 'user_hide_mentor_profile ', visible : false )
362+ assert_no_checked_field ( 'user_show_mentor_profile ', visible : false )
363363 end
364364
365365 test 'administrator can set skipped_practice of general users' do
Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ def assert_events_count(event_label, count)
588588 assert_text '駒形 真幸'
589589 assert_text '株式会社ロッカの代表兼エンジニア。Rubyが大好きで怖話、フィヨルドブートキャンプなどを開発している。'
590590 visit_with_auth edit_current_user_path , 'komagata'
591- check 'プロフィール非公開 ', allow_label_click : true
591+ uncheck 'プロフィール公開 ', allow_label_click : true
592592 click_on '更新する'
593593 assert_text 'ユーザー情報を更新しました。'
594594 logout
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ class WelcomeTest < ApplicationSystemTestCase
129129 assert_text '駒形 真幸'
130130 assert_text '株式会社ロッカの代表兼エンジニア。Rubyが大好きで怖話、フィヨルドブートキャンプなどを開発している。'
131131 visit_with_auth edit_current_user_path , 'komagata'
132- check 'プロフィール非公開 ', allow_label_click : true
132+ uncheck 'プロフィール公開 ', allow_label_click : true
133133 click_on '更新する'
134134 assert_text 'ユーザー情報を更新しました。'
135135 logout
You can’t perform that action at this time.
0 commit comments