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

trotzig / diffux / 370
99%

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

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%)

95.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 370.1 (2.0.0) 13 Apr 2014 08:20AM UTC 0
98.71
Travis Job 370.1
2 370.2 (2.1.0) 13 Apr 2014 08:20AM UTC 0
98.71
Travis Job 370.2
Source Files on build 370
  • Tree
  • List 0
  • Changed 15
  • Source Changed 3
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #370
  • a8744085 on github
  • Prev Build on master (#369)
  • Next Build on master (#371)
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