jnicklas/carrierwave — pull request #500 by ened (2011-10-23 13:07:56+00:00)
Title: Added Specs for Conditional Versions

Hi there,

noticed that specs for conditional versions are perhaps not complete (could only find `:if` for processing, which seems different to me).
So here is a patch to include basic checks (could be used to safely add caching to `active_versions` using `||=`).

The 2nd part (starting with `describe 'with conditional versions and attached to model'`) might look a little odd, but I'm trying to pinpoint a problem within my own project spec in combination with FactoryGirl and CW. Problem is that as soon as I'm using `:if` conditions, the object returned by the `@uploader.version` call is not the version but the model itself. If you see no need, please remove, I will continue debugging anyway.

Thanks,
Sebastian