Sha256: f4d6d28b8df5e535ca59bdbae3fbd270128129e894ee8690eab16e79acd1ec08

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 Bytes

Contents

require 'date'

FactoryGirl.define do
  factory :movie_collection_resource_response, class: ApiResource do
    adult false
    backdrop_path { "/#{FFaker::Name.name}.png" }
    id { rand(1000) }
    original_title { FFaker::Lorem.sentence }
    release_date { (Date.new - rand(10)).to_s }
    poster_path { "/#{FFaker::Name.name}.png" }
    popularity { rand * 10 }
    title { FFaker::Lorem.sentence }
    vote_average { rand * 10 }
    vote_count { rand(9999) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enceladus-0.0.8 spec/factories/movie_collection_resources.rb