vendor/gems/flexmock-0.8.5/test/test_rails_view_stub.rb
# Simulate Rails rendering in version 1.2.4
Simulate Rails rendering in version 1.2.4
Simulate Rails rendering in version 1 . 2 . 4
def render(*names)
    vc = @controller.class.view_class
    v = vc.new
    v.assigns(:x => :y)
    v.render_file
    v.first_render
    names.each do |name|
      v.file_exists?(name)
    end
  end
def render ( * names ) vc = @controller . class . view_class v = vc . new v . assigns ( :x => :y ) v . render_file v . first_render names . each do | name | v . file_exists? ( name ) end end
Simulate Rails rendering in version 1.2.4
Simulate Rails rendering in version 1 . 2 . 4
names