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

paulbdavis / mongo / 3
100%
master: 100%

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

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.

132 of 132 relevant lines covered (100.0%)

15.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.1 10 Jul 2014 05:45PM UTC 0
100.0
Travis Job 3.1
2 3.2 10 Jul 2014 05:45PM UTC 0
100.0
Travis Job 3.2
3 3.3 10 Jul 2014 05:46PM UTC 0
100.0
Travis Job 3.3
Source Files on build 3
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3
  • 35c70a11 on github
  • Prev Build on tomongo-override (#2)
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