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

DavyJonesLocker / client_side_validations / 537
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: releases/23.1.0
DEFAULT BRANCH: main
Ran 08 Dec 2016 12:11PM UTC
Jobs 12
Files 29
Run time 3min
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
537

push

travis-ci

tagliala
Fix conditionals (#686)

The Ruby on Rails guide contains the following example

```
  class Computer < ApplicationRecord
    validates :mouse, presence: true,
                      if: ["market.retail?", :desktop?],
                      unless: Proc.new { |c| c.trackpad.present? }
  end
```

Arrays and Strings were not supported before. https://github.com/rails/rails/blob/38fe5ae24/activesupport/lib/active_support/callbacks.rb#L429-L458
was used for inspiration.

Removes reference to "any object that responds to `#call`" in README, because
this is not how ActiveModel behaves. It doesn't check for `#call`, but
for class (`Proc`), and if it's an arbitrary object it calls callback
scope (which is `validate`). This behavior is not documented in Rails
guides.

25 of 25 new or added lines in 2 files covered. (100.0%)

595 of 597 relevant lines covered (99.66%)

256.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 537.1 (2.0.0, gemfiles/rails_4.0.gemfile) 08 Dec 2016 12:11PM UTC 0
99.49
Travis Job 537.1
2 537.2 (2.0.0, gemfiles/rails_4.1.gemfile) 08 Dec 2016 12:11PM UTC 0
99.49
Travis Job 537.2
3 537.3 (2.0.0, gemfiles/rails_4.2.gemfile) 08 Dec 2016 12:12PM UTC 0
99.49
Travis Job 537.3
4 537.4 (2.1.10, gemfiles/rails_4.0.gemfile) 08 Dec 2016 12:11PM UTC 0
99.49
Travis Job 537.4
5 537.5 (2.1.10, gemfiles/rails_4.1.gemfile) 08 Dec 2016 12:12PM UTC 0
99.49
Travis Job 537.5
6 537.6 (2.1.10, gemfiles/rails_4.2.gemfile) 08 Dec 2016 12:13PM UTC 0
99.49
Travis Job 537.6
7 537.7 (2.2.6, gemfiles/rails_4.0.gemfile) 08 Dec 2016 12:12PM UTC 0
99.49
Travis Job 537.7
8 537.8 (2.2.6, gemfiles/rails_4.1.gemfile) 08 Dec 2016 12:13PM UTC 0
99.49
Travis Job 537.8
9 537.9 (2.2.6, gemfiles/rails_4.2.gemfile) 08 Dec 2016 12:14PM UTC 0
99.49
Travis Job 537.9
10 537.10 (2.3.2, gemfiles/rails_4.0.gemfile) 08 Dec 2016 12:13PM UTC 0
99.5
Travis Job 537.10
11 537.11 (2.3.2, gemfiles/rails_4.1.gemfile) 08 Dec 2016 12:14PM UTC 0
99.5
Travis Job 537.11
12 537.12 (2.3.2, gemfiles/rails_4.2.gemfile) 08 Dec 2016 12:15PM UTC 0
99.5
Travis Job 537.12
Source Files on build 537
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #537
  • 3b3767d9 on github
  • Prev Build on master (#524)
  • Next Build on master (#538)
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