blob: df9fef9fd031289a0594b9c4fe93262a80ae5095 (
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, aliases: [:user_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
|