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
iv
gitlab-ce
Commits
9231b91a
Commit
9231b91a
authored
Jun 27, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mentionable spec
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f0de4b53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
spec/support/mentionable_shared_examples.rb
spec/support/mentionable_shared_examples.rb
+2
-6
No files found.
spec/support/mentionable_shared_examples.rb
View file @
9231b91a
...
...
@@ -11,7 +11,7 @@ def common_mentionable_setup
let
(
:mentioned_issue
)
{
create
:issue
,
project:
mproject
}
let
(
:other_issue
)
{
create
:issue
,
project:
mproject
}
let
(
:mentioned_mr
)
{
create
:merge_request
,
source_project:
mproject
,
source_branch:
'different'
}
let
(
:mentioned_mr
)
{
create
:merge_request
,
:simple
,
source_project:
mproject
}
let
(
:mentioned_commit
)
{
double
(
'commit'
,
sha:
'1234567890abcdef'
).
as_null_object
}
# Override to add known commits to the repository stub.
...
...
@@ -29,11 +29,7 @@ def common_mentionable_setup
# unrecognized commits.
commitmap
=
{
'123456'
=>
mentioned_commit
}
extra_commits
.
each
{
|
c
|
commitmap
[
c
.
sha
[
0
..
5
]]
=
c
}
repo
=
double
(
'repository'
)
repo
.
stub
(
:commit
)
{
|
sha
|
commitmap
[
sha
]
}
mproject
.
stub
(
repository:
repo
)
mproject
.
repository
.
stub
(
:commit
)
{
|
sha
|
commitmap
[
sha
]
}
set_mentionable_text
.
call
(
ref_string
)
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