diff options
author | DJ Mountney <david@twkie.net> | 2016-06-03 01:30:13 +0300 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2016-06-03 01:30:13 +0300 |
commit | 86675194aa44236c3e9acc4aa7ede143f718685e (patch) | |
tree | 2e21a8907fea6300bb0f1620bffb2edd5320d541 /spec/features | |
parent | f0ca487cd513d50c807e4226a1ee459586f16b08 (diff) |
Fix failing todo tests
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/todos/todos_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/todos/todos_spec.rb b/spec/features/todos/todos_spec.rb index c0a1cd64f32..8e1833a069e 100644 --- a/spec/features/todos/todos_spec.rb +++ b/spec/features/todos/todos_spec.rb @@ -49,7 +49,7 @@ describe 'Dashboard Todos', feature: true do note1 = create(:note_on_issue, note: "Hello #{label1.to_reference(format: :name)}", noteable_id: issue.id, noteable_type: 'Issue', project: issue.project) create(:todo, :mentioned, project: project, target: issue, user: user, note_id: note1.id) - project2 = create(:project) + project2 = create(:project, visibility_level: Gitlab::VisibilityLevel::PUBLIC) label2 = create(:label, project: project2) issue2 = create(:issue, project: project2) note2 = create(:note_on_issue, note: "Test #{label2.to_reference(format: :name)}", noteable_id: issue2.id, noteable_type: 'Issue', project: project2) @@ -101,7 +101,7 @@ describe 'Dashboard Todos', feature: true do context 'User has a Todo in a project pending deletion' do before do - deleted_project = create(:project, pending_delete: true) + deleted_project = create(:project, visibility_level: Gitlab::VisibilityLevel::PUBLIC, pending_delete: true) create(:todo, :mentioned, user: user, project: deleted_project, target: issue, author: author) login_as(user) visit dashboard_todos_path |