Since attachment_fu isn’t working for me at the moment, I’ve switched to
acts_as_attachment.
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!