Am I rspec-tarded? December 29, 2008
Posted by John Dewey in Code, Example, RSpec, Ruby.trackback
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.
I was wondering about this today and found your post here. Come up with any other ideas since you wrote this? The solution here is fine, but def not ideal.