Sha256: 04953672fb0ff1ba0e6433ead249f994b2b1ea50c6919c5ae6522ac23114cf14

Contents?: true

Size: 438 Bytes

Versions: 2

Compression:

Stored size: 438 Bytes

Contents

def reset_to_defaults
  create_test_models
end

def create_test_models
  User.delete_all
  Person.delete_all
  Post.delete_all
  Comment.delete_all

  @zeus = User.create!(name: 'Zeus')
  @hera = User.create!(name: 'Hera')
  User.stamper = @zeus.id

  @delynn = Person.create!(name: 'Delynn')
  @nicole = Person.create!(name: 'Nicole')
  Person.stamper = @delynn.id

  @first_post = Post.create!(title: 'a title')
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord-userstamp-3.0.1 spec/support/database_helpers.rb
activerecord-userstamp-3.0.0 spec/support/database_helpers.rb