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 0c98319 commit fc48b6cCopy full SHA for fc48b6c
spec/models/org_spec.rb
@@ -377,11 +377,12 @@
377
it { is_expected.not_to include(org1plan4) }
378
end
379
380
- context 'when user belongs to Org and a plan removed by creator, but cowner still active.' do
+ context 'when user belongs to Org and a plan removed by creator, but coowner still active.' do
381
before do
382
Rails.configuration.x.plans.org_admins_read_all = true
383
coowner = create(:user, org: org1)
384
- org1plan4.add_user!(coowner.id, :coowner)
+ # Add coowner to the plan by giving user the role administrator
385
+ org1plan4.add_user!(coowner.id, :administrator)
386
owner_id = org1plan4.owner.id
387
org1plan4.roles.map { |r| r.update(active: false) if r.user_id == owner_id }
388
0 commit comments