With rspec+webrat you can check various attributes like :href
, :content
, :class
etc but how can I check the content of html5 custom attributes. It seems to complain about the second part of the attribute name.
If attribute is 'data-random'
and I try to use have_selector('li', :data-random => 'string')
it will complain that random
is an undefined local variable or method
.