aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/erb/helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/erb/helper.rb')
-rw-r--r--actionpack/test/template/erb/helper.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/actionpack/test/template/erb/helper.rb b/actionpack/test/template/erb/helper.rb
deleted file mode 100644
index a1973068d5..0000000000
--- a/actionpack/test/template/erb/helper.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-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