BigW Consortium Gitlab

Commit f3abd18c by Robert Schilling

Add user to project to see todos

parent 39e6f504
......@@ -276,7 +276,7 @@ module API
expose :id
expose :project, using: Entities::BasicProjectDetails
expose :author, using: Entities::UserBasic
expose :action_name
#expose :action_name
expose :target_id
expose :target_type
expose :target_reference do |todo, options|
......
......@@ -14,6 +14,11 @@ describe API::Todos, api: true do
let!(:pending_3) { create(:todo, project: project_1, author: author_2, user: john_doe, target: merge_request) }
let!(:done) { create(:todo, :done, project: project_1, author: author_1, user: john_doe) }
before do
project_1.team << [john_doe, :developer]
project_2.team << [john_doe, :developer]
end
describe 'GET /todos' do
context 'when unauthenticated' do
it 'returns authentication error' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment