Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-03 06:59:55 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-05-26 22:48:30 +0300
commitca268b85f62448584eb8455048069669efdcc990 (patch)
tree5cd2ece1f06a9d615ca317a66b9447ef152726d5 /spec/features/markdown_spec.rb
parent3b80cf524c0969495b602b600c2c1e3b52e1c78c (diff)
Use to_reference in Markdown feature spec
Diffstat (limited to 'spec/features/markdown_spec.rb')
-rw-r--r--spec/features/markdown_spec.rb17
1 files changed, 6 insertions, 11 deletions
diff --git a/spec/features/markdown_spec.rb b/spec/features/markdown_spec.rb
index 8f3dfc8d5a9..0fc144462f2 100644
--- a/spec/features/markdown_spec.rb
+++ b/spec/features/markdown_spec.rb
@@ -344,13 +344,13 @@ class MarkdownFeature
end
def commit
- @commit ||= project.repository.commit
+ @commit ||= project.commit
end
def commit_range
unless @commit_range
- commit2 = project.repository.commit('HEAD~3')
- @commit_range = CommitRange.new("#{commit.id}...#{commit2.id}")
+ commit2 = project.commit('HEAD~3')
+ @commit_range = CommitRange.new("#{commit.id}...#{commit2.id}", project)
end
@commit_range
@@ -376,11 +376,6 @@ class MarkdownFeature
@xproject
end
- # Shortcut to "cross-reference/project"
- def xref
- xproject.path_with_namespace
- end
-
def xissue
@xissue ||= create(:issue, project: xproject)
end
@@ -394,13 +389,13 @@ class MarkdownFeature
end
def xcommit
- @xcommit ||= xproject.repository.commit
+ @xcommit ||= xproject.commit
end
def xcommit_range
unless @xcommit_range
- xcommit2 = xproject.repository.commit('HEAD~2')
- @xcommit_range = CommitRange.new("#{xcommit.id}...#{xcommit2.id}")
+ xcommit2 = xproject.commit('HEAD~2')
+ @xcommit_range = CommitRange.new("#{xcommit.id}...#{xcommit2.id}", xproject)
end
@xcommit_range