You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.0 KiB

FactoryGirl.define do
sequence(:email){|n| "#{Faker::Internet.user_name}#{n}@example.com"}
sequence(:password){|n| "password#{n}"}
sequence(:domain_name){|n| "#{n}#{Faker::Internet.domain_name}"}
12 years ago
sequence(:domain_word){|n| "#{n}#{Faker::Internet.domain_word}"}
factory :user do
full_name {Faker::Name.first_name + ' ' + Faker::Name.last_name}
email
password
password_confirmation {password}
after(:create) do |u|
13 years ago
u.confirm!
end
end
factory :domain do
name {FactoryGirl.generate(:domain_name)}
type 'NATIVE'
end
factory :record do
end
13 years ago
factory :soa do
contact {Faker::Internet.email}
end
13 years ago
factory :ns do
content {Settings.ns.sample}
end
13 years ago
factory :a do
12 years ago
name {FactoryGirl.generate(:domain_name)}
13 years ago
content {Faker::Internet.ip_v4_address}
end
factory :permission do
end
12 years ago
factory :admin do
email
password
password_confirmation {password}
12 years ago
end
12 years ago
factory :blacklisted_domain do
name {FactoryGirl.generate(:domain_name)}
end
end