• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

allenwq / devise-multi_email / 217 / 6
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 09 Nov 2019 11:51PM UTC
Files 9
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Nov 2019 11:47PM UTC coverage: 95.324% (+0.03%) from 95.29%
2.6, gemfiles/rails_5_1.gemfile

push

travis-ci

allenwq
<a href="https://github.com/allenwq/devise-multi_email/commit/<a class=hub.com/allenwq/devise-multi_email/commit/97a522f32c86abba89397b8343e39361485a7cae">97a522f32<a href="https://github.com/allenwq/devise-multi_email/commit/97a522f32c86abba89397b8343e39361485a7cae">&quot;&gt;Permit Devise.allow_unconfirmed_access to be nil (#44)

Devise currently permits indefinite unconfirmed access when
`Devise.allow_unconfirmed_access` is set to `nil`.

See:
https://github.com/plataformatec/devise/blob/</a><a class="double-link" href="https://github.com/allenwq/devise-multi_email/commit/<a class="double-link" href="https://github.com/allenwq/devise-multi_email/commit/14863ba4c92cd9781a961be0486f0ea7dfe84144">14863ba4c</a>">14863ba4c</a><a href="https://github.com/allenwq/devise-multi_email/commit/97a522f32c86abba89397b8343e39361485a7cae">/lib/generators/templates/devise.rb#L139-L140

However, at present setting this parameter to nil results in NoMethodErrors
when evaluating the following:

```
def email=(new_email)
  multi_email.change_primary_email_to(new_email, allow_unconfirmed: Devise.allow_unconfirmed_access_for &gt; 0.days)
end
```

This commit creates a new method that checks to ensure if the Devise
configuration permits any period in which an unconfirmed may log in
and uses it to determine whether or not an unconfirmed email address
may be added to a user.

265 of 278 relevant lines covered (95.32%)

25.14 hits per line

Source Files on job 217.6 (2.6, gemfiles/rails_5_1.gemfile)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 207
  • Travis Job 217.6
  • 97a522f3 on github
  • Prev Job for 2.6, gemfiles/rails_5_1.gemfile on master (#213.6)
  • Next Job for 2.6, gemfiles/rails_5_1.gemfile on master (#218.6)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc