Sha256: 45a3c4c0b3ee17c2ccc426d2c9137b38cee4518735db4b6d70555050a468e476
Contents?: true
Size: 1.31 KB
Versions: 25
Compression:
Stored size: 1.31 KB
Contents
Factory.sequence :email do |n| "somebody#{n}@example.com" end Factory.sequence :uri do |n| "www#{n}.example.com" end Factory.sequence :login do |n| "inquire#{n}" end Factory.sequence :name do |n| "a_name#{n}" end Factory.sequence :abbr do |n| "abbr#{n}" end Factory.sequence :locale do |n| "a#{n}" end Factory.sequence :description do |n| "This is the description: #{n}" end Factory.sequence :title do |n| "This is the title: #{n}" end Factory.define :feed do |f| f.uri { Factory.next(:uri) } f.display_uri { Factory.next(:uri) } f.title { Factory.next(:title) } f.service { |a| a.association(:service) } end Factory.define :entry do |f| f.feed { |a| a.association(:feed) } f.permalink { Factory.next(:uri) } f.author { Factory.next(:name) } f.title { Factory.next(:title) } f.description { Factory.next(:description) } f.content { Factory.next(:description) } f.unique_content { Factory.next(:description) } f.published_at DateTime.now f.language { |a| a.association(:language) } f.direct_link { Factory.next(:uri) } f.grain_size 'unknown' end Factory.define :service do |f| f.uri { Factory.next(:uri) } f.name { Factory.next(:name) } f.service_category { |a| a.association(:service_category) } end Factory.define :service_category do |f| f.name { Factory.next(:name) } end
Version data entries
25 entries across 25 versions & 1 rubygems