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
077a8ec2
Commit
077a8ec2
authored
Apr 23, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests.
parent
04020d5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/support/mentionable_shared_examples.rb
spec/support/mentionable_shared_examples.rb
+3
-3
No files found.
spec/support/mentionable_shared_examples.rb
View file @
077a8ec2
...
...
@@ -52,10 +52,9 @@ def common_mentionable_setup
}
extra_commits
.
each
{
|
c
|
commitmap
[
c
.
short_id
]
=
c
}
allow
(
project
).
to
receive
(
:commit
)
{
|
sha
|
commitmap
[
sha
]
}
allow
(
project
.
repository
).
to
receive
(
:commit
)
{
|
sha
|
commitmap
[
sha
]
}
set_mentionable_text
.
call
(
ref_string
)
subject
.
save
end
end
...
...
@@ -108,6 +107,8 @@ shared_examples 'an editable mentionable' do
end
it
'creates new cross-reference notes when the mentionable text is edited'
do
subject
.
save
cross
=
ext_proj
.
path_with_namespace
new_text
=
<<-
MSG
...
...
@@ -136,7 +137,6 @@ shared_examples 'an editable mentionable' do
with
(
newref
,
subject
.
local_reference
,
author
)
end
subject
.
save
set_mentionable_text
.
call
(
new_text
)
subject
.
notice_added_references
(
project
,
author
)
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