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

mezis / fuzzily / 139 / 23
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2015 02:47PM UTC
Files 4
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

25 Aug 2015 02:36PM UTC coverage: 100.0%. Remained the same
2.1.0, gemfiles/rails32_pg.gemfile

Pull #49

travis-ci

savef
Do not raise on missing objects.

The use of ActiveRecord's #find meant missing IDs raised AR::RecordNotFound. This might come up if an object was created and then deleted without its trigram data also being deleted. To avoid the exception this uses #where instead of #find which will ignore missing results.

Due to the method with which the records are sorted to match the trigram query, in these cases nils were cropping up in the results, so this uses #compact to just return the records.

The first test case ensures no exceptions are raised. The second test case ensures the fuzzy find still works and that no nils are returned.
Pull Request #49: Fix AR::RecordNotFound being raised with missing objects.

180 of 180 relevant lines covered (100.0%)

33.59 hits per line

Source Files on job 139.23 (2.1.0, gemfiles/rails32_pg.gemfile)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 139
  • Travis Job 139.23
  • 46913aa8 on github
  • Prev Job for 2.1.0, gemfiles/rails32_pg.gemfile on master (#138.23)
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