Files
ubicloud/spec/model/account_spec.rb
Jeremy Evans 1c5504a438 Remove Account#hyper_tag and #hyper_tag_name
This are no longer used in production and can be removed.
2025-01-20 09:17:23 -08:00

17 lines
607 B
Ruby

# frozen_string_literal: true
RSpec.describe Account do
let(:account) { described_class.create_with_id(email: "test@example.com") }
it "removes referencing access control entries and subject tag memberships" do
project = account.create_project_with_default_policy("project-1", default_policy: false)
tag = SubjectTag.create_with_id(project_id: project.id, name: "t")
tag.add_member(account.id)
ace = AccessControlEntry.create_with_id(project_id: project.id, subject_id: account.id)
account.destroy
expect(tag.member_ids).to be_empty
expect(ace).not_to be_exists
end
end