Sha256: 564de27e83661468c7e53f10a468ec0a3844f28c89f878ff0b8c52c2d9eb1022

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

require 'date'

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enceladus-0.0.7 spec/factories/movie_collection_resources.rb
enceladus-0.0.6 spec/factories/movie_collection_resources.rb
enceladus-0.0.5 spec/factories/movie_collection_resources.rb
enceladus-0.0.4 spec/factories/movie_collection_resources.rb