[rspec-users] Rails View spec testing for content in <head>

Kristian Mandrup kmandrup.github at gmail.com
Mon Aug 23 10:28:27 EDT 2010

I wonder if I can just "stub out" #with_output_buffer to yield the
block immediately, and then assume it will work just as well in a
Rails view template?

class MyView < ActionView::Base
  attr_accessor :current_user

  def with_output_buffer

More information about the rspec-users mailing list