We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1c380d commit b060289Copy full SHA for b060289
spec/services/create_account_spec.rb
@@ -6,6 +6,11 @@
6
let(:account) { FactoryBot.build(:sign_up_account) }
7
let(:stubbed_admin_set) { double(AdminSetResource, id: "admin_set/id") }
8
9
+ after do
10
+ # Ensure we reset to the default tenant after each test
11
+ Apartment::Tenant.switch!(Apartment.default_tenant)
12
+ end
13
+
14
describe '#create_tenant' do
15
it 'creates a new apartment tenant' do
16
expect(Apartment::Tenant).to receive(:create).with(account.tenant)
0 commit comments