show error for cross-environment API key usage

This commit is contained in:
Oleksandr Turchyn authored and Pete Matsyburka committed 2024-10-24 12:07:58 +03:00
1 parent 90d86b58c2
commit 3c616a824c
6 files changed
+156 -16

No files matched your search

+9
View File
@@ -5,5 +5,14 @@ FactoryBot.define do
name { Faker::Company.name }
locale { 'en-US' }
timezone { 'UTC' }
trait :with_testing_account do
after(:create) do |account|
testing_account = account.dup.tap { |a| a.name = "Testing - #{account.name}" }
testing_account.uuid = SecureRandom.uuid
account.testing_accounts << testing_account
account.save!
end
end
end
end