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

lotus / validations / 57
99%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2014 04:08PM UTC
Jobs 6
Files 5
Run time 2min
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
57

push

travis-ci

jodosha
Document and test decorated composable validations

Example:

  require 'lotus/validations'

  module CommonValidations
    include Lotus::Validations

    attribute :email,    presence: true, format: /.../
    attribute :password, presence: true
  end

  # A valid signin requires:
  #  * email (presence and format)
  #  * password (presence)
  class Signin
    include CommonValidations
  end

  # A valid signup requires:
  #  * email (presence and format)
  #  * password (presence and confirmation)
  class Signin
    include CommonValidations

    # Decorates the validations defined in CommonValidations, by
    # requiring a password confirmation too.
    attribute :password, confirmation: true
  end

152 of 152 relevant lines covered (100.0%)

500.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 57.1 (2.0.0) 02 Nov 2014 04:09PM UTC 0
99.32
Travis Job 57.1
2 57.2 (2.1.0) 02 Nov 2014 04:09PM UTC 0
99.32
Travis Job 57.2
3 57.3 (2.1.1) 02 Nov 2014 04:09PM UTC 0
99.32
Travis Job 57.3
4 57.4 (2.1.2) 02 Nov 2014 04:08PM UTC 0
99.32
Travis Job 57.4
5 57.5 (2.1.3) 02 Nov 2014 04:09PM UTC 0
99.32
Travis Job 57.5
7 57.7 (jruby, JRUBY_OPTS="--2.0") 02 Nov 2014 04:10PM UTC 0
99.33
Travis Job 57.7
Source Files on build 57
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #57
  • 06e29025 on github
  • Prev Build on master (#51)
  • Next Build on master (#58)
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