spec/hamlit/engine/new_attribute_spec.rb in hamlit-1.6.5 vs spec/hamlit/engine/new_attribute_spec.rb in hamlit-1.6.6

- old
+ new

@@ -25,9 +25,25 @@ <span a='1' b='2'></span> 3 HTML end + it 'renders hyphenated attributes properly' do + assert_render(<<-HAML, <<-HTML) + %p(data-foo='bar') bar + HAML + <p data-foo='bar'>bar</p> + HTML + end + + it 'renders multiply hyphenated attributes properly' do + assert_render(<<-HAML, <<-HTML) + %p(data-x-foo='bar') bar + HAML + <p data-x-foo='bar'>bar</p> + HTML + end + describe 'html escape' do it 'escapes attribute values on static attributes' do assert_render(<<-'HAML', <<-HTML, compatible_only: :faml) %a(title="'") %a(title = "'\"")