Sha256: ae76a09a432b51ac7ada4dd5ee12b482b8288eabcdce090e5ac79cb2862d2d74

Contents?: true

Size: 758 Bytes

Versions: 7

Compression:

Stored size: 758 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)
        :sass
          .users_controller
            .show_action
              content: "#{'<&>'}"
      HAML
        <style>
          .users_controller .show_action {
            content: "<&>"; }
        </style>
      HTML
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hamlit-1.7.2 spec/hamlit/filters/sass_spec.rb
hamlit-1.7.1 spec/hamlit/filters/sass_spec.rb
hamlit-1.7.0 spec/hamlit/filters/sass_spec.rb
hamlit-1.6.7 spec/hamlit/filters/sass_spec.rb
hamlit-1.6.6 spec/hamlit/filters/sass_spec.rb
hamlit-1.5.3 spec/hamlit/filters/sass_spec.rb
hamlit-1.5.2 spec/hamlit/filters/sass_spec.rb