Permalink
Browse files

Remove RenderERBUtils from AP (only AV use it)

  • Loading branch information...
1 parent 37d77f6 commit 21c5f2845de42fb2f5feee47d4270c18a4a4d5b0 @lukaszx0 lukaszx0 committed Jul 16, 2013
Showing with 0 additions and 22 deletions.
  1. +0 −22 actionpack/test/abstract_unit.rb
@@ -64,28 +64,6 @@ def body_to_string(body)
extend self
end
-module RenderERBUtils
- def view
- @view ||= begin
- path = ActionView::FileSystemResolver.new(FIXTURE_LOAD_PATH)
- view_paths = ActionView::PathSet.new([path])
- ActionView::Base.new(view_paths)
- end
- end
-
- def render_erb(string)
- @virtual_path = nil
-
- template = ActionView::Template.new(
- string.strip,
- "test template",
- ActionView::Template::Handlers::ERB,
- {})
-
- template.render(self, {}).strip
- end
-end
-
SharedTestRoutes = ActionDispatch::Routing::RouteSet.new
module ActionDispatch

0 comments on commit 21c5f28

Please sign in to comment.