deface
deface copied to clipboard
Deface ignores Ruby code in attrs on elements in Haml
Example app: https://github.com/radar/testing_deface_bug. Clone. Bundle.
- Go to http://localhost:3000/products, inspect "INDEX TEST" and see it has the class. Go to Go to http://localhost:3000/products/1, inspect "SHOW TEST" and see it does not have the class.
I'm willing to suggest that the cause of the madness lies somewhere in this code.
Don't forget to rake db:migrate; confirmed this bug. You can comment out the /app/overrides/products_show.rb, reboot server, and see the proper HTML class is now being added by the HAML.