Am I rspec-tarded? December 29, 2008
Posted by John Dewey in Code, Example, RSpec, Ruby.
So I want to test the xml declaration and xhtml doctype of my application layout.
I ended up with this pastie.
Does anyone know of a way to accomplish this using rspec‘s have_tag/with_tag? I’m not too fond of the regexp solution in the pastie.