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

projecthydra / sufia / 5903
94%
master: 98%

Build:
Build:
LAST BUILD BRANCH: v7.3.1
DEFAULT BRANCH: master
Ran 05 May 2016 06:13PM UTC
Jobs 1
Files 194
Run time 13s
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
5903

push

travis-ci

jeremyf
Preferring `Array.wrap()` over `Array()`

`Array()` is a Ruby core method for coercing objects into an Array.
`Array.wrap()` is an ActiveSupport method that behaves a bit more as
expected.

The primary example of why to prefer `Array.wrap` is the following:

```ruby
now = Time.now
Array.wrap(now) == [now]
=> true
Array(now) == [now]
=> false
Array(now)
=> [43, 53, 13, 5, 5, 2016, 4, 126, true, "EDT"]
```

3046 of 3230 relevant lines covered (94.3%)

22.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5903.1 (2.2, RAILS_VERSION=4.2.6) 05 May 2016 06:13PM UTC 0
94.3
Travis Job 5903.1
Source Files on build 5903
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5903
  • dc1dbb03 on github
  • Next Build on prefer-array-wrap-to-array (#5916)
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