Permalink
Browse files

use render in specs to avoid deprecation warnings on sinatra 1.3

  • Loading branch information...
1 parent 26f0061 commit a946e99f19772a8cf9d72025e0af06947f631d4b @rkh rkh committed Aug 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/content_for_spec.rb
View
@@ -158,9 +158,9 @@ def body
helpers Sinatra::ContentFor
set inner, :layout_engine => outer
set :views, File.expand_path("../content_for", __FILE__)
- get('/:view') { send(inner, params[:view].to_sym) }
+ get('/:view') { render(inner, params[:view].to_sym) }
get('/:layout/:view') do
- send inner, params[:view].to_sym, :layout => params[:layout].to_sym
+ render inner, params[:view].to_sym, :layout => params[:layout].to_sym
end
end
end

0 comments on commit a946e99

Please sign in to comment.