Files
fizzy/gems/fizzy-saas/test/test_helper.rb
T
2025-10-02 16:33:23 -04:00

17 lines
384 B
Ruby

require "signal_id/testing"
require "queenbee/testing/mocks"
module ActiveSupport
class TestCase
include SignalId::Testing
end
end
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