Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/todos_helper_spec.rb')
-rw-r--r--spec/helpers/todos_helper_spec.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/helpers/todos_helper_spec.rb b/spec/helpers/todos_helper_spec.rb
index 9481d756c16..3787864e144 100644
--- a/spec/helpers/todos_helper_spec.rb
+++ b/spec/helpers/todos_helper_spec.rb
@@ -40,26 +40,6 @@ RSpec.describe TodosHelper do
end
end
- describe '#todo_projects_options' do
- let(:projects) { create_list(:project, 3) }
- let(:user) { create(:user) }
-
- it 'returns users authorised projects in json format' do
- projects.first.add_developer(user)
- projects.second.add_developer(user)
-
- allow(helper).to receive(:current_user).and_return(user)
-
- expected_results = [
- { 'id' => '', 'text' => 'Any Project' },
- { 'id' => projects.second.id, 'text' => projects.second.full_name },
- { 'id' => projects.first.id, 'text' => projects.first.full_name }
- ]
-
- expect(Gitlab::Json.parse(helper.todo_projects_options)).to match_array(expected_results)
- end
- end
-
describe '#todo_target_link' do
context 'when given a design' do
let(:todo) { design_todo }