Satisfy Rubocop
This commit is contained in:
parent
2f5074dc39
commit
9aac53bcee
|
|
@ -93,7 +93,7 @@ class CommitRange
|
||||||
|
|
||||||
def to_reference(from_project = nil)
|
def to_reference(from_project = nil)
|
||||||
if cross_project_reference?(from_project)
|
if cross_project_reference?(from_project)
|
||||||
reference = project.to_reference + self.class.reference_prefix + self.id
|
project.to_reference + self.class.reference_prefix + self.id
|
||||||
else
|
else
|
||||||
self.id
|
self.id
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ module Gitlab::Markdown
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'ignores invalid commit IDs on the referenced project' do
|
it 'ignores invalid commit IDs on the referenced project' do
|
||||||
exp = act = "Committed #{invalidate_reference(reference)}"
|
act = "Committed #{invalidate_reference(reference)}"
|
||||||
expect(reference_filter(act).to_html).to match(/<a.+>#{Regexp.escape(invalidate_reference(reference))}<\/a>/)
|
expect(reference_filter(act).to_html).to match(/<a.+>#{Regexp.escape(invalidate_reference(reference))}<\/a>/)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ module Gitlab::Markdown
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'ignores invalid snippet IDs on the referenced project' do
|
it 'ignores invalid snippet IDs on the referenced project' do
|
||||||
exp = act = "See #{invalidate_reference(reference)}"
|
act = "See #{invalidate_reference(reference)}"
|
||||||
|
|
||||||
expect(reference_filter(act).to_html).to match(/<a.+>#{Regexp.escape(invalidate_reference(reference))}<\/a>/)
|
expect(reference_filter(act).to_html).to match(/<a.+>#{Regexp.escape(invalidate_reference(reference))}<\/a>/)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue