vendor/gems/flexmock-0.8.5/test/test_rails_view_stub.rb
# Simulate Rails rendering after Rails version 2.0.2
Simulate Rails rendering after Rails version 2.0.2
Simulate Rails rendering after Rails version 2 . 0 . 2
def render(*names)
    v = ActionView::Base.new
    v.assigns(:x => :y)
    v.template_format
    v.view_paths
    v.pick_template_extension
    names.each do |name|
      v.file_exists?(name)
    end
    v.render_file(names.last, nil, nil)
  end
def render ( * names ) v = ActionView :: Base . new v . assigns ( :x => :y ) v . template_format v . view_paths v . pick_template_extension names . each do | name | v . file_exists? ( name ) end v . render_file ( names . last , nil , nil ) end
Simulate Rails rendering after Rails version 2.0.2
Simulate Rails rendering after Rails version 2 . 0 . 2
names