مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
renaming factory girl => factory bot
هذا الالتزام موجود في:
@@ -34,13 +34,13 @@
|
||||
# index_domains_on_uuid (uuid)
|
||||
#
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
factory :domain do
|
||||
association :owner, :factory => :user
|
||||
sequence(:name) { |n| "example#{n}.com" }
|
||||
verification_method 'DNS'
|
||||
verified_at Time.now
|
||||
verification_method { 'DNS' }
|
||||
verified_at { Time.now }
|
||||
end
|
||||
|
||||
factory :organization_domain, :parent => :domain do
|
||||
|
||||
@@ -21,10 +21,10 @@
|
||||
# index_organizations_on_uuid (uuid)
|
||||
#
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
factory :organization do
|
||||
name "Acme Inc"
|
||||
name { "Acme Inc" }
|
||||
sequence(:permalink) { |n| "org#{n}" }
|
||||
association :owner, :factory => :user
|
||||
end
|
||||
|
||||
@@ -39,13 +39,13 @@
|
||||
# index_servers_on_uuid (uuid)
|
||||
#
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
factory :server do
|
||||
association :organization
|
||||
name "Mail Server"
|
||||
mode "Live"
|
||||
provision_database false
|
||||
name { "Mail Server" }
|
||||
mode { "Live" }
|
||||
provision_database { false }
|
||||
sequence(:permalink) { |n| "server#{n}" }
|
||||
end
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
# excluded_click_domains :text(65535)
|
||||
#
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
factory :track_domain do
|
||||
name "click"
|
||||
dns_status 'OK'
|
||||
name { "click" }
|
||||
dns_status { 'OK' }
|
||||
association :server
|
||||
|
||||
after(:build) do |track_domain|
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
# index_users_on_uuid (uuid)
|
||||
#
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
factory :user do
|
||||
first_name "John"
|
||||
last_name "Doe"
|
||||
password "passw0rd"
|
||||
email_verified_at Time.now
|
||||
first_name { "John" }
|
||||
last_name { "Doe" }
|
||||
password { "passw0rd" }
|
||||
email_verified_at { Time.now }
|
||||
sequence(:email_address) { |n| "user#{n}@example.com" }
|
||||
end
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم