Really fix #1568
This commit is contained in:
parent
0a8ceb24b0
commit
c69099c451
|
@ -9,6 +9,8 @@ rvm:
|
|||
os:
|
||||
- linux
|
||||
- osx
|
||||
cache: bundler
|
||||
sudo: false
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -9,7 +9,7 @@ gem 'pry', '~> 0.10', group: :development
|
|||
gem 'aruba', '~> 0.7.4'
|
||||
gem 'rspec', '~> 3.0'
|
||||
gem 'fivemat', '~> 1.3'
|
||||
gem 'cucumber', '~> 2.0'
|
||||
gem 'cucumber', '~> 1.3'
|
||||
|
||||
# Optional middleman dependencies, included for tests
|
||||
gem 'less', '2.3', require: false
|
||||
|
|
|
@ -13,13 +13,13 @@ Feature: Templates should be chainable
|
|||
When I cd to "build"
|
||||
Then the following files should exist:
|
||||
| index.html |
|
||||
| test.html.combobreaker |
|
||||
| test.erb.combobreaker |
|
||||
And the file "index.html" should contain "Title</h1>"
|
||||
And the file "index.html" should contain "Subtitle</h2>"
|
||||
And the file "index.html" should contain "Sup</h3>"
|
||||
And the file "test.html.combobreaker.html" should contain "Title</h1>"
|
||||
And the file "test.html.combobreaker.html" should contain "Subtitle</h2>"
|
||||
And the file "test.html.combobreaker.html" should contain "Sup</h3>"
|
||||
And the file "test.erb.combobreaker" should contain "Title</h1>"
|
||||
And the file "test.erb.combobreaker" should contain "Subtitle</h2>"
|
||||
And the file "test.erb.combobreaker" should contain "Sup</h3>"
|
||||
|
||||
Scenario: Partials are parsed by multiple template engines: Outer template has .erb and inner .md.erb
|
||||
Given a fixture app "partial-chained_templates-app"
|
||||
|
|
|
@ -242,7 +242,7 @@ module Middleman
|
|||
# @return [String]
|
||||
def remove_templating_extensions(path)
|
||||
# Strip templating extensions as long as Tilt knows them
|
||||
path = path.sub(File.extname(path), '') while ::Tilt[path]
|
||||
path = path.sub(/#{::Regexp.escape(File.extname(path))}$/, '') while ::Tilt[path]
|
||||
path
|
||||
end
|
||||
|
||||
|
|
|
@ -75,7 +75,6 @@ end
|
|||
|
||||
Then /^going to "([^\"]*)" should not raise an exception$/ do |url|
|
||||
in_current_directory do
|
||||
|
||||
expect{ visit(URI.encode(url).to_s) }.to_not raise_exception
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue