Skip to content

Commit

Permalink
Fix failing specs for ContentFor
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed May 3, 2016
1 parent 53fc4b5 commit 87853c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sinatra-contrib/spec/content_for_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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
Expand Down

0 comments on commit 87853c1

Please sign in to comment.