diff --git a/spec/services/create_account_spec.rb b/spec/services/create_account_spec.rb index d5562384c..70ba896ff 100644 --- a/spec/services/create_account_spec.rb +++ b/spec/services/create_account_spec.rb @@ -6,6 +6,11 @@ let(:account) { FactoryBot.build(:sign_up_account) } let(:stubbed_admin_set) { double(AdminSetResource, id: "admin_set/id") } + after do + # Ensure we reset to the default tenant after each test + Apartment::Tenant.switch!(Apartment.default_tenant) + end + describe '#create_tenant' do it 'creates a new apartment tenant' do expect(Apartment::Tenant).to receive(:create).with(account.tenant)