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

skanev / evans / 319
95%

Build:
DEFAULT BRANCH: master
Ran 27 Sep 2014 08:30AM UTC
Jobs 2
Files 96
Run time 2min
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

pending completion
319

Pull #148

travis-ci

stormbreakerbg
Move some tests out of the shared ones for the mailers

The shared examples in their previous form could not be used for
any other mailer, even though there may be other mailers that send
emails to multiple users. Also, the parametrization of the shared
examples makes it harder to follow the expectations of the tests.

Now, only the examples for the `#new_challenge` and `#new_task` methods
are shared. This will make the shared test usable for other mailers.
The other option is to make another mailer whose job is to retrieve
all users from the database and call another mailer, but the method
itself is small and making it more generic will be almost like
recreating the functionality of `User.where.each`.

The expectations in the separate mailer spec files are similar, but
for other similar mailers they may be different. For example an
announcement mailer would not contain the title of the announcement
in the body text (only in the subject) and would not use
`announcement_url(announcement)` to generate its URL.
Pull Request #148: Add email notifications for tasks and challenges

32 of 32 new or added lines in 3 files covered. (100.0%)

1377 of 1379 relevant lines covered (99.85%)

19.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 319.1 (2.0.0) 27 Sep 2014 08:31AM UTC 0
99.85
Travis Job 319.1
2 319.2 (2.1.0) 27 Sep 2014 08:30AM UTC 0
99.85
Travis Job 319.2
Source Files on build 319
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #319
  • Pull Request #148
  • PR Base - master (#303)
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