Commit afb765ad authored by Douwe Maan's avatar Douwe Maan

Fix markdown specs again. Apparently development and test behave differently.

parent 99ef8c81
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
# reference to the factory-created objects. # reference to the factory-created objects.
class MarkdownFeature class MarkdownFeature
include FactoryGirl::Syntax::Methods include FactoryGirl::Syntax::Methods
include FixtureHelpers
def user def user
@user ||= create(:user) @user ||= create(:user)
...@@ -101,7 +100,7 @@ class MarkdownFeature ...@@ -101,7 +100,7 @@ class MarkdownFeature
end end
def raw_markdown 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) ERB.new(markdown).result(binding)
end end
end 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