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
213d1a47
Commit
213d1a47
authored
Jun 17, 2015
by
Robert Speicher
Committed by
Dmitriy Zaporozhets
Jun 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use to_reference for issue and merge request mentionable specs
parent
15133d99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
spec/models/issue_spec.rb
spec/models/issue_spec.rb
+1
-1
spec/models/merge_request_spec.rb
spec/models/merge_request_spec.rb
+3
-3
No files found.
spec/models/issue_spec.rb
View file @
213d1a47
...
...
@@ -70,7 +70,7 @@ describe Issue do
it_behaves_like
'an editable mentionable'
do
subject
{
create
(
:issue
,
project:
project
)
}
let
(
:backref_text
)
{
"issue #
#{
subject
.
iid
}
"
}
let
(
:backref_text
)
{
"issue
#
{
subject
.
to_reference
}
"
}
let
(
:set_mentionable_text
)
{
->
(
txt
){
subject
.
description
=
txt
}
}
end
...
...
spec/models/merge_request_spec.rb
View file @
213d1a47
...
...
@@ -165,10 +165,10 @@ describe MergeRequest do
end
it_behaves_like
'an editable mentionable'
do
subject
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
)
}
subject
{
create
(
:merge_request
,
source_project:
project
)
}
let
(
:backref_text
)
{
"merge request
!
#{
subject
.
iid
}
"
}
let
(
:set_mentionable_text
)
{
->
(
txt
){
subject
.
title
=
txt
}
}
let
(
:backref_text
)
{
"merge request
#{
subject
.
to_reference
}
"
}
let
(
:set_mentionable_text
)
{
->
(
txt
){
subject
.
description
=
txt
}
}
end
it_behaves_like
'a Taskable'
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