Module: Workarea::Factories::WishLists

Defined in:
lib/workarea/testing/factories/wish_lists.rb

Instance Method Summary collapse

Instance Method Details

#create_wish_list(overrides = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/workarea/testing/factories/wish_lists.rb', line 6

def create_wish_list(overrides = {})
  attributes = {
    user_id: BSON::ObjectId.new,
    email: '[email protected]',
    first_name: 'Ben',
    last_name: 'Crouse',
    name: 'Ben Crouse',
    location: 'Philadelphia PA 19106'
  }.merge(overrides)

  WishList.create!(attributes)
end