Sha256: 4abc5177c729f12df1622b003ca0dd5727b9a5fdaf264faf7a3b8e348c9ac8e7
Contents?: true
Size: 361 Bytes
Versions: 5
Compression:
Stored size: 361 Bytes
Contents
MFaker = defined?(Faker) ? Faker : FFaker def get_random_photo photos_dir = Rails.root.join 'spec', 'upload_files' raise "No test files found at #{photos_dir}." unless File.exists? photos_dir Dir.glob(photos_dir.join('*.{jpg,png,gif}')).sample end require 'polygallery/factories/polygallery/galleries' require 'polygallery/factories/polygallery/photos'
Version data entries
5 entries across 5 versions & 1 rubygems