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/controllers/profiles
parentcf8a5bcaec99cc197ff556793febb8317e1db220 (diff)
tweaks for rubocop
Diffstat (limited to 'spec/controllers/profiles')
-rw-r--r--spec/controllers/profiles/emails_controller_spec.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/controllers/profiles/emails_controller_spec.rb b/spec/controllers/profiles/emails_controller_spec.rb
index cf510aa5589..bdf040ba295 100644
--- a/spec/controllers/profiles/emails_controller_spec.rb
+++ b/spec/controllers/profiles/emails_controller_spec.rb
@@ -1,7 +1,6 @@
require 'spec_helper'
describe Profiles::EmailsController do
-
let(:user) { create(:user) }
before do
@@ -9,7 +8,7 @@ describe Profiles::EmailsController do
end
describe '#create' do
- let(:email_params) { {email: "add_email@example.com" } }
+ let(:email_params) { {email: "add_email@example.com"} }
it 'sends an email confirmation' do
expect {post(:create, { email: email_params })}.to change { ActionMailer::Base.deliveries.size }
@@ -19,7 +18,7 @@ describe Profiles::EmailsController do
end
describe '#resend_confirmation_instructions' do
- let(:email_params) { {email: "add_email@example.com" } }
+ let(:email_params) { {email: "add_email@example.com"} }
it 'resends an email confirmation' do
email = user.emails.create(email: 'add_email@example.com')
@@ -29,7 +28,7 @@ describe Profiles::EmailsController do
end
it 'unable to resend an email confirmation' do
- expect {put(:resend_confirmation_instructions, { id: 1 })}.to_not change { ActionMailer::Base.deliveries.size }
+ expect {put(:resend_confirmation_instructions, { id: 1 })}.not_to change { ActionMailer::Base.deliveries.size }
end
end
end