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

mysociety / alaveteli / 2573
88%
develop: 37%

Build:
Build:
LAST BUILD BRANCH: redelivery-cleanup
DEFAULT BRANCH: develop
Ran 04 Jun 2015 01:05PM UTC
Jobs 1
Files 116
Run time 15min
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
2573

Pull #2505

travis-ci

Gareth Rees
Avoid loading associations to check existence

Calling InfoRequestEvent#is_X? loads the associated model from the
database. We don't need to do this to check what 'type' the event is.

This commit first checks whether there is an association_id – if there
is then we know it's that 'type'. If there's no association_id, call the
association to check whether one has been added but not yet persisted.

Only check association if the object is a new record. This avoids
checking the association on a persisted record when we know it isn't
that type of event due to the database record not existing.
Pull Request #2505:

19 of 19 new or added lines in 5 files covered. (100.0%)

6145 of 6979 relevant lines covered (88.05%)

169.08 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
app/controllers/public_body_controller.rb
Jobs
ID Job ID Ran Files Coverage
2 2573.2 (1.9.3) 04 Jun 2015 01:05PM UTC 0
88.05
Travis Job 2573.2
Source Files on build 2573
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2573
  • Pull Request #2505
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