Sha256: 67ab721d907acc40e35e37f4edf1947541173275268522a0ed37302ec7480e81
Contents?: true
Size: 325 Bytes
Versions: 2
Compression:
Stored size: 325 Bytes
Contents
Factory.define(:user) do |f| f.email 'user%d@example.com' end Factory.define(:movie) do |f| f.title '%{year}: A Space Odyssey' f.year { '200%d'.to_i } end Factory.define(:book) do |f| f.title 'Harry Potter Vol. %d' f.author 'J.K. Rowling' end Factory.define(:rock) do |f| f.name 'Boring Specimen No. %d' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
recommendable-2.1.2 | test/factories.rb |
recommendable-2.1.1 | test/factories.rb |