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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
d52af8b1
Commit
d52af8b1
authored
Oct 25, 2018
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec in EE which now trigger access to repository
parent
67b579c5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
spec/controllers/projects/milestones_controller_spec.rb
spec/controllers/projects/milestones_controller_spec.rb
+1
-1
spec/services/issuable/bulk_update_service_spec.rb
spec/services/issuable/bulk_update_service_spec.rb
+1
-1
spec/services/merge_requests/update_service_spec.rb
spec/services/merge_requests/update_service_spec.rb
+2
-2
spec/services/milestones/destroy_service_spec.rb
spec/services/milestones/destroy_service_spec.rb
+1
-1
spec/services/notes/quick_actions_service_spec.rb
spec/services/notes/quick_actions_service_spec.rb
+1
-1
spec/services/todo_service_spec.rb
spec/services/todo_service_spec.rb
+1
-1
No files found.
spec/controllers/projects/milestones_controller_spec.rb
View file @
d52af8b1
require
'spec_helper'
describe
Projects
::
MilestonesController
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
,
milestone:
milestone
)
}
...
...
spec/services/issuable/bulk_update_service_spec.rb
View file @
d52af8b1
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
describe
Issuable
::
BulkUpdateService
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
namespace:
user
.
namespace
)
}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
user
.
namespace
)
}
def
bulk_update
(
issuables
,
extra_params
=
{})
bulk_update_params
=
extra_params
...
...
spec/services/merge_requests/update_service_spec.rb
View file @
d52af8b1
...
...
@@ -593,8 +593,8 @@ describe MergeRequests::UpdateService, :mailer do
end
context
'setting `allow_collaboration`'
do
let
(
:target_project
)
{
create
(
:project
,
:public
)
}
let
(
:source_project
)
{
fork_project
(
target_project
)
}
let
(
:target_project
)
{
create
(
:project
,
:
repository
,
:
public
)
}
let
(
:source_project
)
{
fork_project
(
target_project
,
nil
,
repository:
true
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:merge_request
)
do
create
(
:merge_request
,
...
...
spec/services/milestones/destroy_service_spec.rb
View file @
d52af8b1
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
describe
Milestones
::
DestroyService
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:milestone
)
{
create
(
:milestone
,
title:
'Milestone v1.0'
,
project:
project
)
}
before
do
...
...
spec/services/notes/quick_actions_service_spec.rb
View file @
d52af8b1
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
describe
Notes
::
QuickActionsService
do
shared_context
'note on noteable'
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:maintainer
)
{
create
(
:user
).
tap
{
|
u
|
project
.
add_maintainer
(
u
)
}
}
let
(
:assignee
)
{
create
(
:user
)
}
...
...
spec/services/todo_service_spec.rb
View file @
d52af8b1
...
...
@@ -10,7 +10,7 @@ describe TodoService do
let
(
:john_doe
)
{
create
(
:user
)
}
let
(
:skipped
)
{
create
(
:user
)
}
let
(
:skip_users
)
{
[
skipped
]
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:mentions
)
{
'FYI: '
+
[
author
,
assignee
,
john_doe
,
member
,
guest
,
non_member
,
admin
,
skipped
].
map
(
&
:to_reference
).
join
(
' '
)
}
let
(
:directly_addressed
)
{
[
author
,
assignee
,
john_doe
,
member
,
guest
,
non_member
,
admin
,
skipped
].
map
(
&
:to_reference
).
join
(
' '
)
}
let
(
:directly_addressed_and_mentioned
)
{
member
.
to_reference
+
", what do you think? cc: "
+
[
guest
,
admin
,
skipped
].
map
(
&
:to_reference
).
join
(
' '
)
}
...
...
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