diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-03 14:00:00 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-03 14:00:09 +0100 |
commit | f905fd239c79f391ce5a7cc2c5c6648b3d6380e4 (patch) | |
tree | 68a1f074611ef664d3873eb19bc249b071ce1ef2 /spec/support | |
parent | 928d131e3974018581d561a7eb11d6524d2e79a2 (diff) | |
download | gitlab-ce-f905fd239c79f391ce5a7cc2c5c6648b3d6380e4.tar.gz |
Use URL helpers in specs
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/markdown_feature.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/markdown_feature.rb b/spec/support/markdown_feature.rb index bedc1a7f1db..d6d3062a197 100644 --- a/spec/support/markdown_feature.rb +++ b/spec/support/markdown_feature.rb @@ -93,6 +93,10 @@ class MarkdownFeature end end + def urls + Gitlab::Application.routes.url_helpers + end + def raw_markdown markdown = File.read(Rails.root.join('spec/fixtures/markdown.md.erb')) ERB.new(markdown).result(binding) |