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

projecthydra / sufia / 5916 / 1
94%
master: 98%

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

05 May 2016 07:40PM UTC coverage: 94.303%. Remained the same
2.2, RAILS_VERSION=4.2.6

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

Source Files on job 5916.1 (2.2, RAILS_VERSION=4.2.6)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5916
  • Travis Job 5916.1
  • 5fe4b013 on github
  • Prev Job for 2.2, RAILS_VERSION=4.2.6 on prefer-array-wrap-to-array (#5903.1)
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