Sha256: 24a7c9201895aacca9277328367aae9594dc9a85b642ce15fd8138b93fc99fb5
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html <% def image_data File.open(Rails.root.join('test/fixtures/images', 'default.png'), 'rb') do |f| "!!binary \"#{Base64.strict_encode64(f.read)}\"" end end %> one: user_username: MyString1 filename: file_one content_type: 'image/png' image_data: <%= image_data %> image_thumb: <%= image_data %> two: user_username: MyString2 filename: file_two content_type: 'image/png' image_data: <%= image_data %> image_thumb: <%= image_data %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watarase-0.0.3 | test/dummy/test/fixtures/user_image_holders.yml |
watarase-0.0.2 | test/dummy/test/fixtures/user_image_holders.yml |