[rspec-users] Using Haml for view tests
dchelimsky at gmail.com
Mon Apr 7 10:40:41 EDT 2008
On Mon, Mar 24, 2008 at 12:38 PM, Joe Fiorini <joe at faithfulgeek.org> wrote:
> I'm writing a view test and I render index.html.haml. However,
> autotest does not pick up changes to this file, but more importantly,
> when the tests do run I get my Haml source displayed in the "actual"
> result, instead of rendered Html. Does rspec support Haml in this
> way? Is there another way to test Haml views?
RSpec sets up mappings only for rhtml and html.erb views. You can add
your own mappings to deal w/ haml if you like. Check this out:
More information about the rspec-users