This commit is contained in:
Thomas Reynolds 2015-07-22 14:32:14 -07:00
parent 0a8ceb24b0
commit c69099c451
6 changed files with 8 additions and 7 deletions

View file

@ -9,6 +9,8 @@ rvm:
os:
- linux
- osx
cache: bundler
sudo: false
matrix:
fast_finish: true
allow_failures:

View file

@ -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

View file

@ -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"

View file

@ -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

View file

@ -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