[rspec-users] Testing layouts with RSpec on Rails
dchelimsky at gmail.com
Tue Oct 23 18:58:45 EDT 2007
On 10/23/07, Steve <vertebrate at gmail.com> wrote:
> On Tue, 23 Oct 2007 03:16:32 +0000, Steve wrote:
> > On Mon, 22 Oct 2007 20:06:50 -0500, David Chelimsky wrote:
> >>> It would feel even less hackish if "render" supported :text like
> >>> rails render does. So you could do this:
> >>> render :text => '<div>yielded</div>', :layout => 'application'
> >>> response.should have_tag('div', 'yielded')
> >> Good idea. Feature request please.
> > Submitted as issue #14969.
> I don't know if there are any repercussions, but just adding :text to the
> array in
> was enough to make it work.
That's cool, but that's not how we do things. Please submit a patch
with specs. ;)
More information about the rspec-users