Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhooper committed May 16, 2019
1 parent 294c88d commit 79c1056
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/send_sign_up_email_confirmation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def confirmation_period_expired?
# :reek:DuplicateMethodCall
def email_address
@email_address ||= begin
raise handle_multiple_email_address_error if user.email_addresses.count > 1
handle_multiple_email_address_error if user.email_addresses.count > 1
user.email_addresses.take
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/services/send_sign_up_email_confirmation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
subject.call(request_id: request_id, instructions: instructions)
end

it 'creates updates the confirmation values on the email address for the user' do
it 'updates the confirmation values on the email address for the user' do
subject.call(request_id: request_id)

expect(user.reload.email_addresses.count).to eq(1)
Expand Down

0 comments on commit 79c1056

Please sign in to comment.