On 14 August 2012 14:04, Ryan Bigg <[email protected]> wrote:

>  You can do it without dropping back down to SQL. Just check
> `order_values` on the ActiveRecord::Relation object returned.
>

Good idea, thanks. But that would be pretty close to the option 1.
I would just do `query.order_values.should ...` instead of ugly
`query.to_sql.should match ....`

It'll work for simple things though.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to