don't use a deprecated api in ability_spec
This commit is contained in:
parent
482795a908
commit
78eabebedc
1 changed files with 2 additions and 2 deletions
|
@ -222,12 +222,12 @@ describe Ability, lib: true do
|
|||
describe '.project_disabled_features_rules' do
|
||||
let(:project) { build(:project) }
|
||||
|
||||
subject { described_class.project_disabled_features_rules(project) }
|
||||
subject { described_class.allowed(project.owner, project) }
|
||||
|
||||
context 'wiki named abilities' do
|
||||
it 'disables wiki abilities if the project has no wiki' do
|
||||
expect(project).to receive(:has_wiki?).and_return(false)
|
||||
expect(subject).to include(:read_wiki, :create_wiki, :update_wiki, :admin_wiki)
|
||||
expect(subject).not_to include(:read_wiki, :create_wiki, :update_wiki, :admin_wiki)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue