Skip to content

Commit f84ad69

Browse files
committed
Updated RSpec spec/models/org_spec.rb to fix a bug associated with
coowner being used incorrectly as an Role access_type.
1 parent 0c98319 commit f84ad69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/models/org_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,11 @@
377377
it { is_expected.not_to include(org1plan4) }
378378
end
379379

380-
context 'when user belongs to Org and a plan removed by creator, but cowner still active.' do
380+
context 'when user belongs to Org and a plan removed by creator, but coowner (any non creator with administrator rights) still active.' do
381381
before do
382382
Rails.configuration.x.plans.org_admins_read_all = true
383383
coowner = create(:user, org: org1)
384-
org1plan4.add_user!(coowner.id, :coowner)
384+
org1plan4.add_user!(coowner.id, :administrator)
385385
owner_id = org1plan4.owner.id
386386
org1plan4.roles.map { |r| r.update(active: false) if r.user_id == owner_id }
387387
end

0 commit comments

Comments
 (0)