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

lotus / validations / 57 / 2
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2014 04:09PM UTC
Files 5
Run time 3s
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

02 Nov 2014 04:03PM UTC coverage: 99.315% (+0.02%) from 99.291%
2.1.0

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

145 of 146 relevant lines covered (99.32%)

100.03 hits per line

Source Files on job 57.2 (2.1.0)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 57
  • Travis Job 57.2
  • 06e29025 on github
  • Prev Job for 2.1.0 on master (#51.2)
  • Next Job for 2.1.0 on master (#58.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