Sha256: d9a2e190d3a81c22498e8af53875928b785e5f70a089f058acca8bf736070773

Contents?: true

Size: 285 Bytes

Versions: 4

Compression:

Stored size: 285 Bytes

Contents

# By using the symbol ':user', we get Factory Girl to simulate the User model.
Factory.define :user do |user|
  user.name                  "Michael Hartl"
  user.email                 "mhartl@example.com"
  user.password              "foobar"
  user.password_confirmation "foobar"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tft_rails-0.6.2 lib/generators/chapter07/begin/templates/spec/factories.rb
tft_rails-0.6.1 lib/generators/chapter07/begin/templates/spec/factories.rb
tft_rails-0.6.0 lib/generators/chapter07/begin/templates/spec/factories.rb
tft_rails-0.5.1 lib/generators/chapter07/begin/templates/spec/factories.rb