show error for cross-environment API key usage
This commit is contained in:
committed by
Pete Matsyburka
parent
90d86b58c2
commit
3c616a824c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user