Test for Redcarpet using our link_to and image_tag helpers
This commit is contained in:
parent
639a4b2459
commit
e6c7caaa83
|
@ -40,4 +40,24 @@ Feature: Markdown support
|
|||
When I go to "/with_toc_data.html"
|
||||
Then I should see "toc_0"
|
||||
When I go to "/hard_wrap.html"
|
||||
Then I should see "br"
|
||||
Then I should see "br"
|
||||
|
||||
Scenario: Redcarpet uses our link_to and image_tag helpers
|
||||
Given a fixture app "markdown-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
set :markdown_engine, :redcarpet
|
||||
activate :automatic_image_sizes
|
||||
activate :directory_indexes
|
||||
"""
|
||||
And a file named "source/link_and_image.html.markdown" with:
|
||||
"""
|
||||
[A link](/smarty_pants.html)
|
||||
|
||||
![image](blank.gif)
|
||||
"""
|
||||
Given the Server is running at "markdown-app"
|
||||
When I go to "/link_and_image/"
|
||||
Then I should see "/smarty_pants/"
|
||||
Then I should see 'width="1" height="1" src="/images/blank.gif"'
|
||||
|
BIN
middleman-more/fixtures/markdown-app/source/images/blank.gif
Executable file
BIN
middleman-more/fixtures/markdown-app/source/images/blank.gif
Executable file
Binary file not shown.
After Width: | Height: | Size: 43 B |
Loading…
Reference in a new issue