Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c83a6fe2
Commit
c83a6fe2
authored
Mar 12, 2021
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed spec for project options method
parent
6886690e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
spec/helpers/todos_helper_spec.rb
spec/helpers/todos_helper_spec.rb
+0
-20
No files found.
spec/helpers/todos_helper_spec.rb
View file @
c83a6fe2
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment