Sha256: 5baa2ba5173cf2f63f0601ffd2c4a393b504e13051a7535ba399434216a63f36

Contents?: true

Size: 389 Bytes

Versions: 8

Compression:

Stored size: 389 Bytes

Contents

FactoryGirl.define do
  factory :article do |a|
    a.title "Some article"
    a.post "This is the post. It shouldn't be blank."
  end
  
  factory :user do |u|
    u.email 'blago@mayor.cityofchicago.org'
    u.password 'ca$hmoney'
    u.password_confirmation 'ca$hmoney'
  end
  
  factory :comment do |c|
    c.title 'Awesome Comment'
    c.content 'This is an awesome comment'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
governor_comments-0.2.7 spec/rails_app/spec/factories.rb
governor_comments-0.2.6 spec/rails_app/spec/factories.rb
governor_comments-0.2.5 spec/rails_app/spec/factories.rb
governor_comments-0.2.4 spec/rails_app/spec/factories.rb
governor_comments-0.2.3 spec/rails_app/spec/factories.rb
governor_comments-0.2.2 spec/rails_app/spec/factories.rb
governor_comments-0.2.1 spec/rails_app/spec/factories.rb
governor_comments-0.2.0 spec/rails_app/spec/factories.rb