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
a2cfb441
Commit
a2cfb441
authored
Dec 09, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tag service specs
parent
13d6bab1
Changes
41
Show whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
41 additions
and
41 deletions
+41
-41
spec/services/archive_repository_service_spec.rb
spec/services/archive_repository_service_spec.rb
+1
-1
spec/services/ci/create_commit_service_spec.rb
spec/services/ci/create_commit_service_spec.rb
+1
-1
spec/services/ci/create_trigger_request_service_spec.rb
spec/services/ci/create_trigger_request_service_spec.rb
+1
-1
spec/services/ci/event_service_spec.rb
spec/services/ci/event_service_spec.rb
+1
-1
spec/services/ci/image_for_build_service_spec.rb
spec/services/ci/image_for_build_service_spec.rb
+1
-1
spec/services/ci/register_build_service_spec.rb
spec/services/ci/register_build_service_spec.rb
+1
-1
spec/services/ci/web_hook_service_spec.rb
spec/services/ci/web_hook_service_spec.rb
+1
-1
spec/services/create_release_service_spec.rb
spec/services/create_release_service_spec.rb
+1
-1
spec/services/create_snippet_service_spec.rb
spec/services/create_snippet_service_spec.rb
+1
-1
spec/services/destroy_group_service_spec.rb
spec/services/destroy_group_service_spec.rb
+1
-1
spec/services/event_create_service_spec.rb
spec/services/event_create_service_spec.rb
+1
-1
spec/services/git_hooks_service_spec.rb
spec/services/git_hooks_service_spec.rb
+1
-1
spec/services/git_push_service_spec.rb
spec/services/git_push_service_spec.rb
+1
-1
spec/services/git_tag_push_service_spec.rb
spec/services/git_tag_push_service_spec.rb
+1
-1
spec/services/issues/bulk_update_service_spec.rb
spec/services/issues/bulk_update_service_spec.rb
+1
-1
spec/services/issues/close_service_spec.rb
spec/services/issues/close_service_spec.rb
+1
-1
spec/services/issues/create_service_spec.rb
spec/services/issues/create_service_spec.rb
+1
-1
spec/services/issues/update_service_spec.rb
spec/services/issues/update_service_spec.rb
+1
-1
spec/services/merge_requests/close_service_spec.rb
spec/services/merge_requests/close_service_spec.rb
+1
-1
spec/services/merge_requests/create_service_spec.rb
spec/services/merge_requests/create_service_spec.rb
+1
-1
spec/services/merge_requests/merge_service_spec.rb
spec/services/merge_requests/merge_service_spec.rb
+1
-1
spec/services/merge_requests/refresh_service_spec.rb
spec/services/merge_requests/refresh_service_spec.rb
+1
-1
spec/services/merge_requests/reopen_service_spec.rb
spec/services/merge_requests/reopen_service_spec.rb
+1
-1
spec/services/merge_requests/update_service_spec.rb
spec/services/merge_requests/update_service_spec.rb
+1
-1
spec/services/milestones/close_service_spec.rb
spec/services/milestones/close_service_spec.rb
+1
-1
spec/services/milestones/create_service_spec.rb
spec/services/milestones/create_service_spec.rb
+1
-1
spec/services/notes/create_service_spec.rb
spec/services/notes/create_service_spec.rb
+1
-1
spec/services/notification_service_spec.rb
spec/services/notification_service_spec.rb
+1
-1
spec/services/projects/create_service_spec.rb
spec/services/projects/create_service_spec.rb
+1
-1
spec/services/projects/destroy_service_spec.rb
spec/services/projects/destroy_service_spec.rb
+1
-1
spec/services/projects/download_service_spec.rb
spec/services/projects/download_service_spec.rb
+1
-1
spec/services/projects/fork_service_spec.rb
spec/services/projects/fork_service_spec.rb
+1
-1
spec/services/projects/transfer_service_spec.rb
spec/services/projects/transfer_service_spec.rb
+1
-1
spec/services/projects/update_service_spec.rb
spec/services/projects/update_service_spec.rb
+1
-1
spec/services/projects/upload_service_spec.rb
spec/services/projects/upload_service_spec.rb
+1
-1
spec/services/search_service_spec.rb
spec/services/search_service_spec.rb
+1
-1
spec/services/system_hooks_service_spec.rb
spec/services/system_hooks_service_spec.rb
+1
-1
spec/services/system_note_service_spec.rb
spec/services/system_note_service_spec.rb
+1
-1
spec/services/test_hook_service_spec.rb
spec/services/test_hook_service_spec.rb
+1
-1
spec/services/update_release_service_spec.rb
spec/services/update_release_service_spec.rb
+1
-1
spec/services/update_snippet_service_spec.rb
spec/services/update_snippet_service_spec.rb
+1
-1
No files found.
spec/services/archive_repository_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
ArchiveRepositoryService
do
describe
ArchiveRepositoryService
,
services:
true
do
let
(
:project
)
{
create
(
:project
)
}
subject
{
ArchiveRepositoryService
.
new
(
project
,
"master"
,
"zip"
)
}
...
...
spec/services/ci/create_commit_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
module
Ci
describe
CreateCommitService
do
describe
CreateCommitService
,
services:
true
do
let
(
:service
)
{
CreateCommitService
.
new
}
let
(
:project
)
{
FactoryGirl
.
create
(
:ci_project
)
}
let
(
:user
)
{
nil
}
...
...
spec/services/ci/create_trigger_request_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Ci
::
CreateTriggerRequestService
do
describe
Ci
::
CreateTriggerRequestService
,
services:
true
do
let
(
:service
)
{
Ci
::
CreateTriggerRequestService
.
new
}
let
(
:gl_project
)
{
create
(
:project
)
}
let
(
:project
)
{
gl_project
.
ensure_gitlab_ci_project
}
...
...
spec/services/ci/event_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Ci
::
EventService
do
describe
Ci
::
EventService
,
services:
true
do
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
let
(
:user
)
{
double
(
username:
"root"
,
id:
1
)
}
...
...
spec/services/ci/image_for_build_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
module
Ci
describe
ImageForBuildService
do
describe
ImageForBuildService
,
services:
true
do
let
(
:service
)
{
ImageForBuildService
.
new
}
let
(
:project
)
{
FactoryGirl
.
create
(
:ci_project
)
}
let
(
:gl_project
)
{
FactoryGirl
.
create
(
:project
,
gitlab_ci_project:
project
)
}
...
...
spec/services/ci/register_build_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
module
Ci
describe
RegisterBuildService
do
describe
RegisterBuildService
,
services:
true
do
let!
(
:service
)
{
RegisterBuildService
.
new
}
let!
(
:gl_project
)
{
FactoryGirl
.
create
:empty_project
}
let!
(
:commit
)
{
FactoryGirl
.
create
:ci_commit
,
gl_project:
gl_project
}
...
...
spec/services/ci/web_hook_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Ci
::
WebHookService
do
describe
Ci
::
WebHookService
,
services:
true
do
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
let
(
:gl_project
)
{
FactoryGirl
.
create
:empty_project
,
gitlab_ci_project:
project
}
let
(
:commit
)
{
FactoryGirl
.
create
:ci_commit
,
gl_project:
gl_project
}
...
...
spec/services/create_release_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
CreateReleaseService
do
describe
CreateReleaseService
,
services:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:tag_name
)
{
project
.
repository
.
tag_names
.
first
}
...
...
spec/services/create_snippet_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
CreateSnippetService
do
describe
CreateSnippetService
,
services:
true
do
before
do
@user
=
create
:user
@admin
=
create
:user
,
admin:
true
...
...
spec/services/destroy_group_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
DestroyGroupService
do
describe
DestroyGroupService
,
services:
true
do
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:group
)
{
create
(
:group
)
}
let!
(
:project
)
{
create
(
:project
,
namespace:
group
)
}
...
...
spec/services/event_create_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
EventCreateService
do
describe
EventCreateService
,
services:
true
do
let
(
:service
)
{
EventCreateService
.
new
}
describe
'Issues'
do
...
...
spec/services/git_hooks_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
GitHooksService
do
describe
GitHooksService
,
services:
true
do
include
RepoHelpers
let
(
:user
)
{
create
:user
}
...
...
spec/services/git_push_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
GitPushService
do
describe
GitPushService
,
services:
true
do
include
RepoHelpers
let
(
:user
)
{
create
:user
}
...
...
spec/services/git_tag_push_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
GitTagPushService
do
describe
GitTagPushService
,
services:
true
do
include
RepoHelpers
let
(
:user
)
{
create
:user
}
...
...
spec/services/issues/bulk_update_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Issues
::
BulkUpdateService
do
describe
Issues
::
BulkUpdateService
,
services:
true
do
let
(
:issue
)
{
create
(
:issue
,
project:
@project
)
}
before
do
...
...
spec/services/issues/close_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Issues
::
CloseService
do
describe
Issues
::
CloseService
,
services:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:issue
)
{
create
(
:issue
,
assignee:
user2
)
}
...
...
spec/services/issues/create_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Issues
::
CreateService
do
describe
Issues
::
CreateService
,
services:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/services/issues/update_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Issues
::
UpdateService
do
describe
Issues
::
UpdateService
,
services:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:user3
)
{
create
(
:user
)
}
...
...
spec/services/merge_requests/close_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
MergeRequests
::
CloseService
do
describe
MergeRequests
::
CloseService
,
services:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
assignee:
user2
)
}
...
...
spec/services/merge_requests/create_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
MergeRequests
::
CreateService
do
describe
MergeRequests
::
CreateService
,
services:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/services/merge_requests/merge_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
MergeRequests
::
MergeService
do
describe
MergeRequests
::
MergeService
,
services:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
assignee:
user2
)
}
...
...
spec/services/merge_requests/refresh_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
MergeRequests
::
RefreshService
do
describe
MergeRequests
::
RefreshService
,
services:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
MergeRequests
::
RefreshService
}
...
...
spec/services/merge_requests/reopen_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
MergeRequests
::
ReopenService
do
describe
MergeRequests
::
ReopenService
,
services:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
assignee:
user2
)
}
...
...
spec/services/merge_requests/update_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
MergeRequests
::
UpdateService
do
describe
MergeRequests
::
UpdateService
,
services:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:user3
)
{
create
(
:user
)
}
...
...
spec/services/milestones/close_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Milestones
::
CloseService
do
describe
Milestones
::
CloseService
,
services:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:milestone
)
{
create
(
:milestone
,
title:
"Milestone v1.2"
,
project:
project
)
}
...
...
spec/services/milestones/create_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Milestones
::
CreateService
do
describe
Milestones
::
CreateService
,
services:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/services/notes/create_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Notes
::
CreateService
do
describe
Notes
::
CreateService
,
services:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/services/notification_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
NotificationService
do
describe
NotificationService
,
services:
true
do
let
(
:notification
)
{
NotificationService
.
new
}
around
(
:each
)
do
|
example
|
...
...
spec/services/projects/create_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Projects
::
CreateService
do
describe
Projects
::
CreateService
,
services:
true
do
describe
:create_by_user
do
before
do
@user
=
create
:user
...
...
spec/services/projects/destroy_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Projects
::
DestroyService
do
describe
Projects
::
DestroyService
,
services:
true
do
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:project
)
{
create
(
:project
,
namespace:
user
.
namespace
)
}
let!
(
:path
)
{
project
.
repository
.
path_to_repo
}
...
...
spec/services/projects/download_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Projects
::
DownloadService
do
describe
Projects
::
DownloadService
,
services:
true
do
describe
'File service'
do
before
do
@user
=
create
:user
...
...
spec/services/projects/fork_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Projects
::
ForkService
do
describe
Projects
::
ForkService
,
services:
true
do
describe
:fork_by_user
do
before
do
@from_namespace
=
create
(
:namespace
)
...
...
spec/services/projects/transfer_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Projects
::
TransferService
do
describe
Projects
::
TransferService
,
services:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:group
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:project
,
namespace:
user
.
namespace
)
}
...
...
spec/services/projects/update_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Projects
::
UpdateService
do
describe
Projects
::
UpdateService
,
services:
true
do
describe
:update_by_user
do
before
do
@user
=
create
:user
...
...
spec/services/projects/upload_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
Projects
::
UploadService
do
describe
Projects
::
UploadService
,
services:
true
do
describe
'File service'
do
before
do
@user
=
create
:user
...
...
spec/services/search_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
'Search::GlobalService'
do
describe
'Search::GlobalService'
,
services:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:public_user
)
{
create
(
:user
)
}
let
(
:internal_user
)
{
create
(
:user
)
}
...
...
spec/services/system_hooks_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
SystemHooksService
do
describe
SystemHooksService
,
services:
true
do
let
(
:user
)
{
create
:user
}
let
(
:project
)
{
create
:project
}
let
(
:project_member
)
{
create
:project_member
}
...
...
spec/services/system_note_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
SystemNoteService
do
describe
SystemNoteService
,
services:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:author
)
{
create
(
:user
)
}
let
(
:noteable
)
{
create
(
:issue
,
project:
project
)
}
...
...
spec/services/test_hook_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
TestHookService
do
describe
TestHookService
,
services:
true
do
let
(
:user
)
{
create
:user
}
let
(
:project
)
{
create
:project
}
let
(
:hook
)
{
create
:project_hook
,
project:
project
}
...
...
spec/services/update_release_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
UpdateReleaseService
do
describe
UpdateReleaseService
,
services:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:tag_name
)
{
project
.
repository
.
tag_names
.
first
}
...
...
spec/services/update_snippet_service_spec.rb
View file @
a2cfb441
require
'spec_helper'
describe
UpdateSnippetService
do
describe
UpdateSnippetService
,
services:
true
do
before
do
@user
=
create
:user
@admin
=
create
:user
,
admin:
true
...
...
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