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:
authorDouwe Maan <douwe@gitlab.com>2015-08-21 01:41:34 +0300
committerDouwe Maan <douwe@gitlab.com>2015-08-21 01:41:34 +0300
commitafb765ad9ef6fd394a9709f6ab519267a761e6ad (patch)
tree71b8ebe6ecf04d5e469d3e9824191ad33a5e8023 /spec/support
parent99ef8c81598ad31922dfbe28c0c56130e01bd13a (diff)
Fix markdown specs again. Apparently development and test behave differently.
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/markdown_feature.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/support/markdown_feature.rb b/spec/support/markdown_feature.rb
index cb47d290822..39a64391460 100644
--- a/spec/support/markdown_feature.rb
+++ b/spec/support/markdown_feature.rb
@@ -9,7 +9,6 @@
# reference to the factory-created objects.
class MarkdownFeature
include FactoryGirl::Syntax::Methods
- include FixtureHelpers
def user
@user ||= create(:user)
@@ -101,7 +100,7 @@ class MarkdownFeature
end
def raw_markdown
- markdown = fixture_file('markdown.md.erb')
+ markdown = File.read(Rails.root.join('spec/fixtures/markdown.md.erb'))
ERB.new(markdown).result(binding)
end
end