diff options
author | Stan Hu <stanhu@gmail.com> | 2017-03-15 21:50:20 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-03-15 21:51:08 +0300 |
commit | 203bb0bc546cfa99272a858426904030d9292615 (patch) | |
tree | 18f68a88f9225b054e96992040bb69ddf09b0400 /spec/features/profiles | |
parent | ba9ea195f87a99ffa2662c8f273599f16dca4478 (diff) |
Revert "Merge branch 'option-to-be-notified-of-own-activity' into 'master'
This reverts commit 5e9666880376b3f53edb95cba77b5642d3cc1810, reversing
changes made to b35378a938e22f745b6c6ea32b53cb50f9b6c627.
Diffstat (limited to 'spec/features/profiles')
-rw-r--r-- | spec/features/profiles/user_changes_notified_of_own_activity_spec.rb | 32 |
1 files changed, 0 insertions, 32 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 deleted file mode 100644 index e05fbb3715c..00000000000 --- a/spec/features/profiles/user_changes_notified_of_own_activity_spec.rb +++ /dev/null @@ -1,32 +0,0 @@ -require 'spec_helper' - -feature 'Profile > Notifications > User changes notified_of_own_activity setting', feature: true, js: true do - let(:user) { create(:user) } - - before do - login_as(user) - end - - scenario 'User opts into receiving notifications about their own activity' do - visit profile_notifications_path - - expect(page).not_to have_checked_field('user[notified_of_own_activity]') - - 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]') - end - - scenario 'User opts out of receiving notifications about their own activity' do - user.update!(notified_of_own_activity: true) - visit profile_notifications_path - - expect(page).to have_checked_field('user[notified_of_own_activity]') - - 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]') - end -end |