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?
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.