Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Walker <brett@digitalmoksha.com>2017-09-09 19:32:27 +0300
committerBrett Walker <brett@digitalmoksha.com>2017-09-23 16:23:11 +0300
commitd2267beb8916de5003e06b8764f209508fca989f (patch)
tree4e1f1a35222d4873f17b8e9ad8a2b7955bc04836 /spec/features/profiles
parentcf8a5bcaec99cc197ff556793febb8317e1db220 (diff)
tweaks for rubocop
Diffstat (limited to 'spec/features/profiles')
-rw-r--r--spec/features/profiles/emails_spec.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/features/profiles/emails_spec.rb b/spec/features/profiles/emails_spec.rb
index a3e3ea4e7a2..3085e1ee7bc 100644
--- a/spec/features/profiles/emails_spec.rb
+++ b/spec/features/profiles/emails_spec.rb
@@ -37,7 +37,7 @@ feature 'Profile > Emails' do
expect(page).to have_content("my@email.com")
click_link('Remove')
- expect(page).to_not have_content("my@email.com")
+ expect(page).not_to have_content("my@email.com")
end
scenario 'User confirms email' do
@@ -51,22 +51,21 @@ feature 'Profile > Emails' do
visit profile_emails_path
expect(page).to have_content("#{email.email} Verified")
end
-
+
scenario 'User re-sends confirmation email' do
email = user.emails.create(email: 'my@email.com')
visit profile_emails_path
-
+
expect { click_link("Resend confirmation email") }.to change { ActionMailer::Base.deliveries.size }
expect(page).to have_content("Confirmation email sent to #{email.email}")
end
-
+
scenario 'old unconfirmed emails show Send Confirmation button' do
email = user.emails.create(email: 'my@email.com')
email.update_attribute(:confirmation_sent_at, nil)
visit profile_emails_path
- expect(page).to_not have_content('Resend confirmation email')
+ expect(page).not_to have_content('Resend confirmation email')
expect(page).to have_content('Send confirmation email')
end
-
end