Files
fizzy/saas/test/test_helper.rb
T
2025-11-23 06:04:20 +01:00

10 lines
277 B
Ruby

require "queenbee/testing/mocks"
Queenbee::Remote::Account.class_eval do
# because we use the account ID as the tenant name, we need it to be unique in each test to avoid
# parallelized tests clobbering each other.
def next_id
super + Random.rand(1000000)
end
end