diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-06-10 13:24:38 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-07-01 11:49:34 +0300 |
commit | f3abd18c9c7da9c53bea2f08c2326a15ba5948f3 (patch) | |
tree | 894908354ef48c79818412be6d9b1c872b8f28c8 /spec/requests | |
parent | 39e6f504fcb8c6cab511a50cdefd76e821bfec17 (diff) |
Add user to project to see todos
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/todos_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/requests/api/todos_spec.rb b/spec/requests/api/todos_spec.rb index 7ad6d26c42f..147028ba1c9 100644 --- a/spec/requests/api/todos_spec.rb +++ b/spec/requests/api/todos_spec.rb @@ -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 |