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

projecthydra-labs / curation_concerns / 2615
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: 1987_sufia_tech_debt
DEFAULT BRANCH: master
Ran 05 May 2016 06:15PM UTC
Jobs 1
Files 179
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
2615

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"]
```

2957 of 3273 relevant lines covered (90.35%)

29.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2615.1 (2.2) 05 May 2016 06:15PM UTC 0
90.35
Travis Job 2615.1
Source Files on build 2615
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2615
  • 5e71eb2b on github
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