Move off-by-default extensions into middleman-more, make middleman-more itself an extension
This commit is contained in:
parent
182ad87ad3
commit
1cad726c81
92 changed files with 902 additions and 758 deletions
|
@ -45,24 +45,4 @@ Feature: relative_link_to helper
|
|||
Then I should see 'unknown: <a href="foo.html">Unknown</a>'
|
||||
When I go to "/link_to/sub.html"
|
||||
Then I should see 'absolute: <a href="../needs_index.html">Needs Index</a>'
|
||||
Then I should see 'relative: <a href="../needs_index.html">Relative</a>'
|
||||
|
||||
Scenario: relative_link_to knows about directory indexes
|
||||
Given a fixture app "indexable-app"
|
||||
And a file named "source/link_to.html.erb" with:
|
||||
"""
|
||||
absolute: <%= link_to "Needs Index", "/needs_index.html", :relative => true %>
|
||||
relative: <%= link_to "Relative", "needs_index.html", :relative => true %>
|
||||
"""
|
||||
And a file named "source/link_to/sub.html.erb" with:
|
||||
"""
|
||||
absolute: <%= link_to "Needs Index", "/needs_index.html", :relative => true %>
|
||||
relative: <%= link_to "Relative", "../needs_index.html", :relative => true %>
|
||||
"""
|
||||
And the Server is running at "indexable-app"
|
||||
When I go to "/link_to/"
|
||||
Then I should see 'absolute: <a href="needs_index/">Needs Index</a>'
|
||||
Then I should see 'relative: <a href="needs_index/">Relative</a>'
|
||||
When I go to "/link_to/sub/"
|
||||
Then I should see 'absolute: <a href="../needs_index/">Needs Index</a>'
|
||||
Then I should see 'relative: <a href="../needs_index/">Relative</a>'
|
||||
Then I should see 'relative: <a href="../needs_index.html">Relative</a>'
|
Loading…
Add table
Add a link
Reference in a new issue