Using Haml for view tests

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?

Thanks all!
Joe

On Mon, Mar 24, 2008 at 12:38 PM, Joe F. [email protected]
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:
http://tinyurl.com/25xdey

Cheers,
David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs