Skip to content

Commit

Permalink
Remove RenderERBUtils from AP (only AV use it)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszx0 committed Aug 25, 2013
1 parent 37d77f6 commit 21c5f28
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions actionpack/test/abstract_unit.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -64,28 +64,6 @@ def body_to_string(body)
extend self extend self
end 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 SharedTestRoutes = ActionDispatch::Routing::RouteSet.new


module ActionDispatch module ActionDispatch
Expand Down

0 comments on commit 21c5f28

Please sign in to comment.