Created
December 6, 2013 00:13
-
-
Save Sunnyztj/7816517 to your computer and use it in GitHub Desktop.
FactoryGirl
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 :prize do | |
name "iPhone" | |
image { File.new(Rails.root.join("app/assets/images/sample/sample-prize-2.png")) } | |
icon { File.new(Rails.root.join("app/assets/images/sample/scratch-2.png")) } | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment