Commit 4647d138 authored by Richard Macklin's avatar Richard Macklin

Use check and uncheck methods from Capybara DSL

in user_changes_notified_of_own_activity_spec
parent 946efd9f
...@@ -12,7 +12,7 @@ feature 'Profile > Notifications > User changes notified_of_own_activity setting ...@@ -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]') 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_content('Notification settings saved')
expect(page).to have_checked_field('user[notified_of_own_activity]') 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 ...@@ -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]') 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).to have_content('Notification settings saved')
expect(page).not_to have_checked_field('user[notified_of_own_activity]') expect(page).not_to have_checked_field('user[notified_of_own_activity]')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment