add missing permissions to roles in spec

pull/7251/head
Wieland Lindenthal 6 years ago
parent 2b0590bbc7
commit 4c589c04c3
  1. 4
      modules/bcf/spec/controllers/issues_controller_spec.rb

@ -31,11 +31,11 @@ require 'spec_helper'
describe ::Bcf::IssuesController, type: :controller do
let(:manage_bcf_role) do
FactoryBot.create(:role,
permissions: %i[manage_bcf view_linked_issues view_work_packages])
permissions: %i[manage_bcf view_linked_issues view_work_packages add_work_packages edit_work_packages])
end
let(:collaborator_role) do
FactoryBot.create(:role,
permissions: %i[view_linked_issues view_work_packages])
permissions: %i[view_linked_issues view_work_packages add_work_packages edit_work_packages])
end
let(:bcf_manager) { FactoryBot.create(:user, firstname: "BCF Manager") }
let(:collaborator) { FactoryBot.create(:user) }

Loading…
Cancel
Save