BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a916936f
Commit
a916936f
authored
Jun 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec.
parent
156c43c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
mentionable_shared_examples.rb
spec/support/mentionable_shared_examples.rb
+15
-6
No files found.
spec/support/mentionable_shared_examples.rb
View file @
a916936f
...
...
@@ -107,17 +107,26 @@ shared_examples 'an editable mentionable' do
it
'creates new cross-reference notes when the mentionable text is edited'
do
subject
.
save
new_text
=
<<-
MSG
new_text
=
<<-
MSG
.
strip_heredoc
These references already existed:
Issue:
#{
mentioned_issue
.
to_reference
}
Commit:
#{
mentioned_commit
.
to_reference
}
Issue:
#{
mentioned_issue
.
to_reference
}
Commit:
#{
mentioned_commit
.
to_reference
}
---
This cross-project reference already existed:
Issue:
#{
ext_issue
.
to_reference
(
project
)
}
Issue:
#{
ext_issue
.
to_reference
(
project
)
}
---
These two references are introduced in an edit:
Issue:
#{
new_issues
[
0
].
to_reference
}
Cross:
#{
new_issues
[
1
].
to_reference
(
project
)
}
Issue:
#{
new_issues
[
0
].
to_reference
}
Cross:
#{
new_issues
[
1
].
to_reference
(
project
)
}
MSG
# These three objects were already referenced, and should not receive new
...
...
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