summaryrefslogtreecommitdiff
path: root/spec/factories.rb
blob: 3af30fcea484db9ebb57f147d8f8b2266ec675e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FactoryGirl.define do
  factory :video do
    title Faker::Lorem.word
    description Faker::Lorem.words(50).join(' ')
    uri Faker::Internet.uri('https')
    user
  end

  factory :user do
    email Faker::Internet.email
    password "password"
    password_confirmation "password"
  end

  factory :session do
    user
  end

  factory :service do
    name Faker::Company.name
  end

  factory :environment do
    association :service
    name Faker::Lorem.word
  end

  factory :failure do
    association :environment
    message "heck"
    hostname "local"
    error_type "StandardError"
  end
end