Skip to content

Commit

Permalink
Unit Test person_ability_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjubla authored Dec 7, 2023
1 parent 3c6d74e commit ec54944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/abilities/person_ability_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8

# Copyright (c) 2012-2017, Jungwacht Blauring Schweiz. This file is part of
# Copyright (c) 2012-2023, Jungwacht Blauring Schweiz. This file is part of
# hitobito_jubla and licensed under the Affero General Public License version 3
# or later. See the COPYING file at the top-level directory or at
# https://github.com/hitobito/hitobito_jubla.
Expand Down Expand Up @@ -255,7 +255,7 @@
end

describe :contact_data do
let(:role) { Fabricate(Group::StateBoard::Member.name.to_sym, group: groups(:be_board)) }
let(:role) { Fabricate(Group::StateBoard::Leader.name.to_sym, group: groups(:be_board)) }

it 'may view details of himself' do
is_expected.to be_able_to(:show_full, role.person.reload)
Expand Down Expand Up @@ -294,7 +294,7 @@
end

it 'may show any public role in same layer' do
other = Fabricate(Group::StateProfessionalGroup::Member.name.to_sym, group: groups(:be_security))
other = Fabricate(Group::StateProfessionalGroup::Leader.name.to_sym, group: groups(:be_security))
is_expected.to be_able_to(:show, other.person.reload)
end

Expand Down

0 comments on commit ec54944

Please sign in to comment.