Created
December 16, 2014 06:53
-
-
Save osiro/f7f8bd267c6bdbc3ca75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FactoryGirl.define do | |
factory :agency do | |
#... other fields | |
profile_image { File.open(Rails.root.join('spec', 'support', 'files', 'image-600.jpeg')) } | |
banner_image { File.open(Rails.root.join('spec', 'support', 'files', 'image.jpeg')) } | |
end | |
FactoryGirl.define do | |
factory :agency do | |
#... other fields | |
trait :with_images do | |
profile_image { File.open(Rails.root.join('spec', 'support', 'files', 'image-600.jpeg')) } | |
banner_image { File.open(Rails.root.join('spec', 'support', 'files', 'image.jpeg')) } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment