Created
July 11, 2017 20:12
-
-
Save dwilkins/8ee73425f3c10c46f74c18cf9069594b to your computer and use it in GitHub Desktop.
Users fixtures
This file contains hidden or 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
<% binary_image = File.open("#{Rails.root}/test/fixtures/files/photo-one.png").read %> | |
<% image_uid = Dragonfly.app.store(binary_image) %> | |
<% image_name = Dragonfly.app.fetch(image_uid).name %> | |
john_doe: | |
username: jdoe | |
email: '[email protected]' | |
first_name: John | |
last_name: Doe | |
photo_uid: image_uid | |
photo_name: image_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment