Sha256: afaecc730a3f47c6b714801a89ac38388af646946ed0a7ff8efb455cc55dbdaa
Contents?: true
Size: 862 Bytes
Versions: 36
Compression:
Stored size: 862 Bytes
Contents
describe Hamlit::Filters::Sass do describe '#compile' do it 'renders sass filter' do assert_render(<<-HAML, <<-HTML) :sass .users_controller .show_action margin: 10px padding: 20px HAML <style> .users_controller .show_action { margin: 10px; padding: 20px; } </style> HTML end it 'renders sass filter with string interpolation' do assert_render(<<-'HAML', <<-HTML) - width = 1200 - height = 800 :sass .users_controller .show_action width: #{width}px height: #{height}px HAML <style> .users_controller .show_action { width: 1200px; height: 800px; } </style> HTML end end end
Version data entries
36 entries across 36 versions & 1 rubygems