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
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
HTML
end
end
end