vendor/gems/flexmock-0.8.5/test/test_rails_view_stub.rb
def render(*names)
    v = @response.template
    v.assigns(:x => :y)
    v.render_file
    v.template_format
    v.view_paths
    v.pick_template_extension
    names.each do |name|
      v.file_exists?(name)
    end
  end
# Simulate Rails rendering after Rails version 1.2.4
Simulate Rails rendering after Rails version 1.2.4
Simulate Rails rendering after Rails version 1 . 2 . 4
def render(*names)
    v = @response.template
    v.assigns(:x => :y)
    v.render_file
    v.template_format
    v.view_paths
    v.pick_template_extension
    names.each do |name|
      v.file_exists?(name)
    end
  end
def render ( * names ) v = @response . template v . assigns ( :x => :y ) v . render_file v . template_format v . view_paths v . pick_template_extension names . each do | name | v . file_exists? ( name ) end end
Simulate Rails rendering after Rails version 1.2.4
Simulate Rails rendering after Rails version 1 . 2 . 4
names