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
d29e6b73
Commit
d29e6b73
authored
May 30, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use single-quotes instead double-quotes
parent
8d2ceb36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
spec/models/issue_link_spec.rb
spec/models/issue_link_spec.rb
+1
-1
spec/services/issue_links/create_service_spec.rb
spec/services/issue_links/create_service_spec.rb
+3
-3
No files found.
spec/models/issue_link_spec.rb
View file @
d29e6b73
...
...
@@ -23,7 +23,7 @@ describe IssueLink do
issue_link
=
build
:issue_link
,
source:
issue
,
target:
issue
expect
(
issue_link
).
to
be_invalid
expect
(
issue_link
.
errors
[
:source
]).
to
include
(
"cannot be related to itself"
)
expect
(
issue_link
.
errors
[
:source
]).
to
include
(
'cannot be related to itself'
)
end
end
end
...
...
spec/services/issue_links/create_service_spec.rb
View file @
d29e6b73
...
...
@@ -25,7 +25,7 @@ describe IssueLinks::CreateService, service: true do
end
it
'returns error'
do
is_expected
.
to
eq
(
message:
"No Issue found for given reference"
,
status: :error
,
http_status:
401
)
is_expected
.
to
eq
(
message:
'No Issue found for given reference'
,
status: :error
,
http_status:
401
)
end
end
...
...
@@ -35,7 +35,7 @@ describe IssueLinks::CreateService, service: true do
end
it
'returns error'
do
is_expected
.
to
eq
(
message:
"No Issue found for given reference"
,
status: :error
,
http_status:
401
)
is_expected
.
to
eq
(
message:
'No Issue found for given reference'
,
status: :error
,
http_status:
401
)
end
it
'no relationship is created'
do
...
...
@@ -151,7 +151,7 @@ describe IssueLinks::CreateService, service: true do
end
it
'returns error'
do
is_expected
.
to
eq
(
message:
"Validation failed: Source issue is already related"
,
status: :error
,
http_status:
401
)
is_expected
.
to
eq
(
message:
'Validation failed: Source issue is already related'
,
status: :error
,
http_status:
401
)
end
it
'no relation is created'
do
...
...
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