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: os:
- linux - linux
- osx - osx
cache: bundler
sudo: false
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures: allow_failures:

View file

@ -9,7 +9,7 @@ gem 'pry', '~> 0.10', group: :development
gem 'aruba', '~> 0.7.4' gem 'aruba', '~> 0.7.4'
gem 'rspec', '~> 3.0' gem 'rspec', '~> 3.0'
gem 'fivemat', '~> 1.3' gem 'fivemat', '~> 1.3'
gem 'cucumber', '~> 2.0' gem 'cucumber', '~> 1.3'
# Optional middleman dependencies, included for tests # Optional middleman dependencies, included for tests
gem 'less', '2.3', require: false gem 'less', '2.3', require: false

View file

@ -13,13 +13,13 @@ Feature: Templates should be chainable
When I cd to "build" When I cd to "build"
Then the following files should exist: Then the following files should exist:
| index.html | | index.html |
| test.html.combobreaker | | test.erb.combobreaker |
And the file "index.html" should contain "Title</h1>" 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 "Subtitle</h2>"
And the file "index.html" should contain "Sup</h3>" And the file "index.html" should contain "Sup</h3>"
And the file "test.html.combobreaker.html" should contain "Title</h1>" And the file "test.erb.combobreaker" should contain "Title</h1>"
And the file "test.html.combobreaker.html" should contain "Subtitle</h2>" And the file "test.erb.combobreaker" should contain "Subtitle</h2>"
And the file "test.html.combobreaker.html" should contain "Sup</h3>" 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 Scenario: Partials are parsed by multiple template engines: Outer template has .erb and inner .md.erb
Given a fixture app "partial-chained_templates-app" Given a fixture app "partial-chained_templates-app"

View file

@ -242,7 +242,7 @@ module Middleman
# @return [String] # @return [String]
def remove_templating_extensions(path) def remove_templating_extensions(path)
# Strip templating extensions as long as Tilt knows them # 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 path
end end

View file

@ -75,7 +75,6 @@ end
Then /^going to "([^\"]*)" should not raise an exception$/ do |url| Then /^going to "([^\"]*)" should not raise an exception$/ do |url|
in_current_directory do in_current_directory do
expect{ visit(URI.encode(url).to_s) }.to_not raise_exception expect{ visit(URI.encode(url).to_s) }.to_not raise_exception
end end
end end