I can’t seem to figure out how to assert in my test that my method which
finds 5 records is in fact returning five records.
In my model:
:conditions => “created_at <= now()”,
:limit => 5,
:order => “created_at desc”)
I created a widgets.yml fixture with five records in it.
In my test_widget.rb unit test I want to assert that there are in fact
records being returned with the recent_widgets method
I’ve gone as far as:
w = widget.recent_widgets
David Andrew T.