Sha256: ef42252f2fe16b1babcee6f9e68b1cf90806952dd5913735da3478a06784f0b1

Contents?: true

Size: 685 Bytes

Versions: 30

Compression:

Stored size: 685 Bytes

Contents

FactoryGirl.define do
  
  # =================
  # = Gem Factories =
  # =================
  factory :post, class: Blogit::Post do
    title "Tis is a blog post title"
    body "This is the body of the blog post - you'll see it's a lot bigger than the title"
    association :blogger, :factory => :user
  end
  
  factory :comment, class: Blogit::Comment do
    name "Gavin"
    email "gavin@gavinmorrice.com"
    website "http://gavinmorrice.com"
    body "I once saw a child the size of a tangerine!"
    post
  end
  
  # =======================
  # = Dummy App Factories =
  # =======================
  factory :user do
    username "bodacious"
    password "password"
  end
  
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
blogit-0.8.0 spec/factories.rb
blogit-0.7.0 spec/factories.rb
blogit-0.6.0 spec/factories.rb
blogit-0.5.1 spec/factories.rb
blogit-0.5.0 spec/factories.rb
blogit-0.4.8 spec/factories.rb
blogit-0.4.7 spec/factories.rb
blogit-0.4.6 spec/factories.rb
blogit-0.4.5 spec/factories.rb
blogit-0.4.4 spec/factories.rb
blogit-0.4.3 spec/factories.rb
blogit-0.4.2 spec/factories.rb
blogit-0.4.1 spec/factories.rb
blogit-0.4.0 spec/factories.rb
blogit-0.3.2 spec/factories.rb
blogit-0.3.1 spec/factories.rb
blogit-0.3.0 spec/factories.rb
blogit-0.2.1 spec/factories.rb
blogit-0.2.0 spec/factories.rb
blogit-0.1.0 spec/factories.rb