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

trotzig / diffux / 370 / 1
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 13 Apr 2014 08:20AM UTC
Files 32
Run time 2s
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

13 Apr 2014 08:11AM UTC coverage: 98.708% (+0.007%) from 98.701%
2.0.0

push

travis-ci

trotzig
Prevent comparer to trigger when re-taking snapshot

This fixes a bug where the comparer worker was triggered immediately
when you hit the "Re-take snapshot" button. The worker would error out
quickly because the snapshot image was no longer available. The fix was
to add a check for the image being there before triggering the comparer.
This was more complicated than I first though, mostly due to how the
paperclip gem handles attachment deletions.

I though that `snapshot.image = nil` would result in `snapshot.image ==
nil`, but no, `snapshot.image` returns a non-nil value even after that.
However, you can check for the existence of `snapshot.image_file_name`
instead.

611 of 619 relevant lines covered (98.71%)

47.63 hits per line

Source Files on job 370.1 (2.0.0)
  • Tree
  • List 0
  • Changed 11
  • Source Changed 2
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 370
  • Travis Job 370.1
  • a8744085 on github
  • Prev Job for 2.0.0 on master (#369.1)
  • Next Job for 2.0.0 on master (#371.1)
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

© 2025 Coveralls, Inc