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

hacsoc / the_jolly_advisor
26%
master: 37%

Build:
Build:
LAST BUILD BRANCH: dependabot/bundler/rack-2.0.8
DEFAULT BRANCH: master
Repo Added 20 Apr 2015 07:22PM UTC
Files 27
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

LAST BUILD ON BRANCH fix-set-course
branch: fix-set-course
CHANGE BRANCH
x
Reset
  • fix-set-course
  • active-tab
  • adapters
  • cleanup-importer
  • dependabot/bundler/loofah-2.3.1
  • dependabot/bundler/rack-2.0.8
  • direct-routes
  • explorer-autocomplete
  • fix-coveralls
  • fix-pg-patch
  • fix-scheduler-view
  • master
  • push-coverage-in-CI
  • rails-5-2-beta
  • remove-database-cleaner
  • scheduler-fix
  • sis-importer-tests
  • tips-and-reviews
  • update-gems
  • vcr

pending completion
751

push

travis-ci

ajm188
Fix NoMethodError in set_course

The NoMethodError came from the regex match. If the regex failed to
match the course id, then `.captures` would be called on `nil`. So we
wrap the entire method in a `rescue` block that will result in a 404 if
any error occurs.

Then, to clean things up a bit more, use the `!` version of `find_by` so
that ActiveRecord raises an exception if no record is found. Now, all
error paths will hit the same `rescue`.

208 of 787 relevant lines covered (26.43%)

2.59 hits per line

Relevant lines Covered
Build:
Build:
787 RELEVANT LINES 208 COVERED LINES
2.59 HITS PER LINE
Source Files on fix-set-course
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
751 fix-set-course Fix NoMethodError in set_course The NoMethodError came from the regex match. If the regex failed to match the course id, then `.captures` would be called on `nil`. So we wrap the entire method in a `rescue` block that will result in a 404 if any ... push 13 Nov 2017 04:19PM UTC ajm188 travis-ci pending completion  
See All Builds (539)
  • Repo on GitHub
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