On Fri, Feb 10, 2017 at 3:02 AM, 'krfg' via Ruby on Rails: Talk
<rubyonrails-talk@googlegroups.com> wrote:

> The AtpCalendar and WtaCalendar fixtures are empty.
> Therefore, any? should return an empty array

1. If your test depends on some values being populated, then you
    need to provide that through fixtures or factories.

2. Read the doc for Enum - "any?" returns a boolean, not an array.

-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAT8epwPqNgbS%2Bbd3iR41D%2BUOOpgkUL0%2BS%3Dmx3mVG0yBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to