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

ndlib / hydramata-works / 363
99%

Build:
DEFAULT BRANCH: master
Ran 05 Sep 2014 05:41PM UTC
Jobs 6
Files 63
Run time 5min
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
363

push

travis-ci

jeremyf
Adding explicit #validate method

In switching from inheritence to composition, I encountered the
a delegator problem.

The point of entry for validation is the Validator#validate method;
this is true of Rails and true of Hydramata::Works::ValidationService.

What is happening prior to this commit is that we have the Validation
object and its collaborating BaseValidator. When the application
attempts to call Validation#validate, the delegator passing along the
behavior to the BaseValidator#validate and the #validate_each message
is received by the BaseValidator instance, and thus uses the initial
behavior.

So in favoring composition, I encountered a problem resolved by
inheritance.

1468 of 1476 relevant lines covered (99.46%)

155.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 363.1 (2.0.0, gemfiles/rails4.gemfile) 05 Sep 2014 05:41PM UTC 0
99.46
Travis Job 363.1
2 363.2 (2.0.0, gemfiles/rails4.1.gemfile) 05 Sep 2014 05:41PM UTC 0
99.46
Travis Job 363.2
3 363.3 (2.1.1, gemfiles/rails4.gemfile) 05 Sep 2014 05:41PM UTC 0
99.46
Travis Job 363.3
4 363.4 (2.1.1, gemfiles/rails4.1.gemfile) 05 Sep 2014 05:41PM UTC 0
99.46
Travis Job 363.4
5 363.5 (2.1.2, gemfiles/rails4.gemfile) 05 Sep 2014 05:41PM UTC 0
99.46
Travis Job 363.5
6 363.6 (2.1.2, gemfiles/rails4.1.gemfile) 05 Sep 2014 05:45PM UTC 0
99.46
Travis Job 363.6
Source Files on build 363
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #363
  • 8f3dd2ae on github
  • Prev Build on master (#359)
  • Next Build on master (#366)
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