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

paulbdavis / mongo / 2
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: documentation
DEFAULT BRANCH: master
Ran 10 Jul 2014 05:36PM UTC
Jobs 3
Files 3
Run time 4min
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
2

push

travis-ci

paulbdavis
add detection for toMongo method

First tried to detect method `model#toMongo()` to get the document used
for saving. This allows `model#toJSON()` to be overridden to hide
hidden/unneeded fields without messing up the database document
structure.

`model#toJSON()` is used as the fallback if the model prototype does not
have a `toMongo()` method.

94 of 99 relevant lines covered (94.95%)

11.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2.1 10 Jul 2014 05:36PM UTC 0
94.95
Travis Job 2.1
2 2.2 10 Jul 2014 05:36PM UTC 0
94.95
Travis Job 2.2
3 2.3 10 Jul 2014 05:41PM UTC 0
94.95
Travis Job 2.3
Source Files on build 2
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2
  • 98806239 on github
  • Next Build on tomongo-override (#3)
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