Since attachment_fu isnâ€™t working for me at the moment, Iâ€™ve switched to
Does anyone know how to set up a simple unit test for
acts_as_attachment? Iâ€™ve ventured into the included tests but theyâ€™re a
bit over my head, to be honest.
Is it possible to use fixtures to test aaa?
For example, suppose I have a simple model called Picture, which has
just the basic acts_as_attachment fields. How would I set up some simple
unit tests to make sure itâ€™s working? Can I use fixtures or do I need to
use methods in my unit tests to use fixture_file_upload?
Iâ€™m wondering if anyone has any straightforward examples for a very
simple case that I could learn from. Thanks!