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
Kazuhiko Shiozaki
gitlab-ce
Commits
7e9109c4
Commit
7e9109c4
authored
Dec 04, 2015
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move `common_mentionable_setup` to shared context in specs
parent
75c6b29f
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 @
7e9109c4
...
...
@@ -4,7 +4,7 @@
# - let(:backref_text) { "the way that +subject+ should refer to itself in backreferences " }
# - let(:set_mentionable_text) { lambda { |txt| "block that assigns txt to the subject's mentionable_text" } }
def
common_mentionable_setup
shared_context
'mentionable context'
do
let
(
:project
)
{
subject
.
project
}
let
(
:author
)
{
subject
.
author
}
...
...
@@ -56,7 +56,7 @@ def common_mentionable_setup
end
shared_examples
'a mentionable'
do
common_mentionable_setup
include_context
'mentionable context'
it
'generates a descriptive back-reference'
do
expect
(
subject
.
gfm_reference
).
to
eq
(
backref_text
)
...
...
@@ -88,7 +88,7 @@ shared_examples 'a mentionable' do
end
shared_examples
'an editable mentionable'
do
common_mentionable_setup
include_context
'mentionable context'
it_behaves_like
'a mentionable'
...
...
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