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
Jérome Perrin
gitlab-ce
Commits
a5b9e1c2
Commit
a5b9e1c2
authored
Sep 26, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added more specs
parent
a9f1e972
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
spec/lib/gitlab/import_export/project_tree_saver_spec.rb
spec/lib/gitlab/import_export/project_tree_saver_spec.rb
+1
-1
spec/models/project_services/custom_issue_tracker_service_spec.rb
...els/project_services/custom_issue_tracker_service_spec.rb
+16
-0
No files found.
spec/lib/gitlab/import_export/project_tree_saver_spec.rb
View file @
a5b9e1c2
...
...
@@ -112,7 +112,7 @@ describe Gitlab::ImportExport::ProjectTreeSaver, services: true do
end
it
'saves the correct service type'
do
expect
(
saved_project_json
[
'services'
].
first
[
'type'
]).
not_to
be_nil
expect
(
saved_project_json
[
'services'
].
first
[
'type'
]).
to
eq
(
'CustomIssueTrackerService'
)
end
it
'has project feature'
do
...
...
spec/models/project_services/custom_issue_tracker_service_spec.rb
View file @
a5b9e1c2
...
...
@@ -25,5 +25,21 @@ describe CustomIssueTrackerService, models: true do
it
{
is_expected
.
not_to
validate_presence_of
(
:issues_url
)
}
it
{
is_expected
.
not_to
validate_presence_of
(
:new_issue_url
)
}
end
context
'title'
do
let
(
:issue_tracker
)
{
described_class
.
new
(
properties:
{})
}
it
'sets a default title'
do
issue_tracker
.
title
=
nil
expect
(
issue_tracker
.
title
).
to
eq
(
'Custom Issue Tracker'
)
end
it
'sets the custom title'
do
issue_tracker
.
title
=
'test title'
expect
(
issue_tracker
.
title
).
to
eq
(
'test title'
)
end
end
end
end
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