Sha256: 8767f538bb58d880296d91eea470c32fafa722d87eaf4d4c5894ea3d31431eb4
Contents?: true
Size: 672 Bytes
Versions: 2
Compression:
Stored size: 672 Bytes
Contents
module ERBTest class ViewContext include ActionView::Helpers::UrlHelper include SharedTestRoutes.url_helpers include ActionView::Helpers::TagHelper include ActionView::Helpers::JavaScriptHelper include ActionView::Helpers::FormHelper attr_accessor :output_buffer, :controller def protect_against_forgery?() false end end class BlockTestCase < ActiveSupport::TestCase def render_content(start, inside) template = block_helper(start, inside) ActionView::Template::Handlers::Erubis.new(template).evaluate(ViewContext.new) end def block_helper(str, rest) "<%= #{str} do %>#{rest}<% end %>" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activejob-lock-0.0.2 | rails/actionview/test/template/erb/helper.rb |
activejob-lock-0.0.1 | rails/actionview/test/template/erb/helper.rb |