Commit 9aac53bc authored by Douwe Maan's avatar Douwe Maan

Satisfy Rubocop

parent 2f5074dc
......@@ -93,7 +93,7 @@ def to_s
def to_reference(from_project = nil)
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
self.id
end
......
......@@ -152,7 +152,7 @@ module Gitlab::Markdown
end
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>/)
end
......
......@@ -134,7 +134,7 @@ module Gitlab::Markdown
end
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>/)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment