handle spec permissions the new way

pull/6827/head
Jens Ulferts 8 years ago committed by Oliver Günther
parent 379361bf45
commit 26fd453ca4
  1. 2
      spec/lib/open_project/costs/default_data_spec.rb
  2. 2
      spec/models/work_package/ask_before_destruction_spec.rb

@ -44,7 +44,7 @@ describe OpenProject::Costs::DefaultData do
end
it 'is not loaded again on existing data' do
member.permissions.clear
member.permissions = []
member.save!
seeder.seed!

@ -192,7 +192,7 @@ describe WorkPackage, type: :model do
before do
work_package2.save!
role2.permissions << :edit_cost_entries
role2.add_permission! :edit_cost_entries
role2.save!
member2.save!
end

Loading…
Cancel
Save