مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
style(rubocop): fix all safe auto correctable offenses
هذا الالتزام موجود في:
@@ -35,16 +35,14 @@
|
||||
#
|
||||
|
||||
FactoryBot.define do
|
||||
|
||||
factory :domain do
|
||||
association :owner, :factory => :user
|
||||
association :owner, factory: :user
|
||||
sequence(:name) { |n| "example#{n}.com" }
|
||||
verification_method { 'DNS' }
|
||||
verification_method { "DNS" }
|
||||
verified_at { Time.now }
|
||||
end
|
||||
|
||||
factory :organization_domain, :parent => :domain do
|
||||
association :owner, :factory => :organization
|
||||
factory :organization_domain, parent: :domain do
|
||||
association :owner, factory: :organization
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -22,11 +22,9 @@
|
||||
#
|
||||
|
||||
FactoryBot.define do
|
||||
|
||||
factory :organization do
|
||||
name { "Acme Inc" }
|
||||
sequence(:permalink) { |n| "org#{n}" }
|
||||
association :owner, :factory => :user
|
||||
association :owner, factory: :user
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
#
|
||||
|
||||
FactoryBot.define do
|
||||
|
||||
factory :server do
|
||||
association :organization
|
||||
name { "Mail Server" }
|
||||
@@ -48,5 +47,4 @@ FactoryBot.define do
|
||||
provision_database { false }
|
||||
sequence(:permalink) { |n| "server#{n}" }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -19,15 +19,13 @@
|
||||
#
|
||||
|
||||
FactoryBot.define do
|
||||
|
||||
factory :track_domain do
|
||||
name { "click" }
|
||||
dns_status { 'OK' }
|
||||
dns_status { "OK" }
|
||||
association :server
|
||||
|
||||
after(:build) do |track_domain|
|
||||
track_domain.domain ||= create(:domain, :owner => track_domain.server)
|
||||
track_domain.domain ||= create(:domain, owner: track_domain.server)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#
|
||||
|
||||
FactoryBot.define do
|
||||
|
||||
factory :user do
|
||||
first_name { "John" }
|
||||
last_name { "Doe" }
|
||||
@@ -32,5 +31,4 @@ FactoryBot.define do
|
||||
email_verified_at { Time.now }
|
||||
sequence(:email_address) { |n| "user#{n}@example.com" }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم