1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Fix array attribute rendering

This commit is contained in:
Takashi Kokubun 2015-05-06 23:29:10 +09:00
parent ef8cdf9b27
commit dc7923bb3e
2 changed files with 10 additions and 0 deletions

View file

@ -42,6 +42,8 @@ module Hamlit
value = value.join('_')
when :class
value = value.join(' ')
else
value
end
end

View file

@ -99,6 +99,14 @@ describe Hamlit::Engine do
<p id='a_b_c'></p>
HTML
end
it 'does not join others' do
assert_render(<<-'HAML', <<-HTML)
%a{ data: { value: [count: 1] } }
HAML
<a data-value='[{:count=&gt;1}]'></a>
HTML
end
end
describe 'deletable attributes' do