Permalink
Browse files

convert arbre to string to satisfy Rack::Lint

  • Loading branch information...
1 parent 8d17dfc commit 6bab38b6b5f4379603dc43b83a9106699262cf91 @jpmckinney jpmckinney committed Aug 22, 2012
Showing with 8 additions and 1 deletion.
  1. +1 −0 Gemfile
  2. +1 −1 lib/arbre/rails/template_handler.rb
  3. +6 −0 spec/rails/rails_spec_helper.rb
View
@@ -4,6 +4,7 @@ gemspec
group :test do
gem "rspec"
+ gem "rack"
end
group :rails do
@@ -4,7 +4,7 @@ module Rails
class TemplateHandler
def call(template)
- "Arbre::Context.new(assigns, self){ #{template.source} }"
+ "Arbre::Context.new(assigns, self){ #{template.source} }.to_s"
end
@knoopx

knoopx Oct 9, 2012

Contributor

why is this not an Arbre::Document, so we can use #doctype in our arbre layouts?

end
@@ -4,6 +4,12 @@
# Combustion
require 'combustion'
+
+# Arbre's Rails integration should satisfy Rack::Lint.
+class Combustion::Application
+ config.middleware.use 'Rack::Lint'
+end
+
Combustion.path = 'spec/rails/stub_app'
Combustion.initialize! :action_controller,
:action_view,

0 comments on commit 6bab38b

Please sign in to comment.