diff options
author | Richard Macklin <richard.github@nrm.com> | 2017-02-01 05:27:14 +0300 |
---|---|---|
committer | Richard Macklin <richard.github@nrm.com> | 2017-02-01 22:31:22 +0300 |
commit | 4647d13893d84dea5d0863c48a933dcc8a1ba679 (patch) | |
tree | 5530961096d6a46cd4217d6410f52ea22f525248 /spec/features/profiles | |
parent | 946efd9fa690de68c6766cba063ff078af8699e1 (diff) |
Use check and uncheck methods from Capybara DSL
in user_changes_notified_of_own_activity_spec
Diffstat (limited to 'spec/features/profiles')
-rw-r--r-- | spec/features/profiles/user_changes_notified_of_own_activity_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/profiles/user_changes_notified_of_own_activity_spec.rb b/spec/features/profiles/user_changes_notified_of_own_activity_spec.rb index 0709f32bf0c..e05fbb3715c 100644 --- a/spec/features/profiles/user_changes_notified_of_own_activity_spec.rb +++ b/spec/features/profiles/user_changes_notified_of_own_activity_spec.rb @@ -12,7 +12,7 @@ feature 'Profile > Notifications > User changes notified_of_own_activity setting expect(page).not_to have_checked_field('user[notified_of_own_activity]') - page.find('#user_notified_of_own_activity').set(true) + check 'user[notified_of_own_activity]' expect(page).to have_content('Notification settings saved') expect(page).to have_checked_field('user[notified_of_own_activity]') @@ -24,7 +24,7 @@ feature 'Profile > Notifications > User changes notified_of_own_activity setting expect(page).to have_checked_field('user[notified_of_own_activity]') - page.find('#user_notified_of_own_activity').set(false) + uncheck 'user[notified_of_own_activity]' expect(page).to have_content('Notification settings saved') expect(page).not_to have_checked_field('user[notified_of_own_activity]') |