On Sat, Jun 7, 2008 at 9:23 AM, Maurício Linhares <[EMAIL PROTECTED]> wrote: > Hello guys, > > Is there any way to match a render :nothing? > > I coudn't find any way to do this so i've just changed my controllers > to do a "head :ok", but it would be nice to know if there is any other > way :)
I'm pretty sure you can do response.body.should be_blank # or == "" If you don't like how it reads, you could create a custom render_nothing matcher. Pat _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users