[rspec-users] find_all_by returning nil
lists at ruby-forum.com
Mon Aug 11 16:35:16 EDT 2008
> It just looks as if (based on logs) that no database call is made in the
> real application when I make this call with rspec (although it works ok
> without rspec)
> products = find_all_by_category_id(category_id)
> The error is generated in the statement following the above statement
> products.each do |product|
> saying products is nil
I should not have expected any database call as this is a stub.
I will investigate further as there is something else causing the error
other than rspec.
Posted via http://www.ruby-forum.com/.
More information about the rspec-users