Sha256: 30155ca302853a60c5560ef1cc84ac2fc3e44567a157f730659dc56913f229ef
Contents?: true
Size: 827 Bytes
Versions: 17
Compression:
Stored size: 827 Bytes
Contents
describe Hamlit::Filters::Less do describe '#compile' do it 'renders less filter' do assert_render(<<-HAML, <<-HTML, compatible_only: :haml, error_with: :faml) :less .users_controller { .show_action { margin: 10px; padding: 20px; } } HAML <style> .users_controller .show_action { margin: 10px; padding: 20px; } </style> HTML end it 'parses string interpolation' do assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml) :less .foo { content: "#{'<&>'}"; } HAML <style> .foo { content: "<&>"; } </style> HTML end end end
Version data entries
17 entries across 17 versions & 1 rubygems