Ruby on Rails Friday, February 10, 2017

On Fri, Feb 10, 2017 at 3:02 AM, 'krfg' via Ruby on Rails: Talk
<> 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 ------------------------
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
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment