Skip to content

Commit

Permalink
add test to confirm that + sign works in email addresses. fixes #171
Browse files Browse the repository at this point in the history
  • Loading branch information
lynndylanhurley committed Mar 13, 2015
1 parent afa14c1 commit da97c90
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,23 @@ class DeviseTokenAuth::RegistrationsControllerTest < ActionDispatch::Integration
end
end

describe 'using "+" in email' do
test 'can use + sign in email addresses' do
@plus_email = 'ak+testing@gmail.com'

post '/auth', {
email: @plus_email,
password: "secret123",
password_confirmation: "secret123",
confirm_success_url: Faker::Internet.url
}

@resource = assigns(:resource)

assert_equal @plus_email, @resource.email
end
end

describe 'Using redirect_whitelist' do
before do
@good_redirect_url = Faker::Internet.url
Expand Down

0 comments on commit da97c90

Please sign in to comment.