1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Fix failing specs for ContentFor

/cc #152
This commit is contained in:
Zachary Scott 2016-05-03 17:39:16 +09:00
parent 53fc4b513e
commit 87853c1431

View file

@ -11,7 +11,7 @@ describe Sinatra::ContentFor do
Tilt.prefer Tilt::ERBTemplate
extend Forwardable
def_delegators :subject, :content_for, :yield_content
def_delegators :subject, :content_for, :clear_content_for, :yield_content
def render(engine, template)
subject.send(:render, engine, template, :layout => false).gsub(/\s/, '')
end