Cucumber – Carrierwave – ImageUploader – Variable class

You would like to test the carrierwave imageuploader with a cucumber test, but you would also like to use a generic step that can be used with different classes and different image file column names.

Use the following and perhaps put it a file named features/common_steps.rb