[rspec-users] Testing my_form_for in a FormBuilder test

2010-08-24 Thread Rafael Uchôa
Hi there, I'm developing a FormBuilder (let's say LabelledFormBuilder), and I created a helper called labelled_form_for to put the ":builder => LabelledFormBuilder" in options and call the original form_for, like suggested on the Rails API ( http://liten.be//0EBtc ). I wrote this test: [code]

[rspec-users] Testing HAML views with RSpec

2010-08-20 Thread Rafael Uchôa
Hi there, I'm using HAML for my views and I want to test them, but I got a 'Missing template' exception when I run it. I found this topic ( http://urele.com/ua6 ) where David tells to add a mapping to deal with haml, but I don't understand how I can do it (the link shows how do it with Autotest, bu