Fix markdown specs again. Apparently development and test behave differently.
This commit is contained in:
parent
99ef8c8159
commit
afb765ad9e
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue