The result array contains ActiveRecord::Relation objects as explained in Rails API:
*named scopes act like an Array<http://api.rubyonrails.org/classes/Array.html>, implementing Enumerable <http://api.rubyonrails.org/classes/Enumerable.html>; Shirt.red.each(&block), Shirt.red.first, and Shirt.red.inject(memo, &block)all behave as if Shirt.red really was an Array <http://api.rubyonrails.org/classes/Array.html>.* So is there a way to either test them or transform into AR objects to test? -- You received this message because you are subscribed to the Google Groups "rspec" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rspec/-/MtcOBIkLlpIJ. For more options, visit https://groups.google.com/groups/opt_out.
