Sha256: f69e1b650377e512a67fda4a9f81d8e940f1b5fc0cac91c9f6889ed4336929f4

Contents?: true

Size: 806 Bytes

Versions: 12

Compression:

Stored size: 806 Bytes

Contents

describe Hamlit::Filters::Sass do
  describe '#compile' do
    it 'renders sass filter' do
      assert_render(<<-HAML, <<-HTML, compatible_only: :haml)
        :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, compatible_only: :haml)
        :sass
          .users_controller
            .show_action
              content: "#{'<&>'}"
      HAML
        <style>
          .users_controller .show_action {
            content: "<&>"; }
        </style>
      HTML
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hamlit-1.6.5 spec/hamlit/filters/sass_spec.rb
hamlit-1.6.4 spec/hamlit/filters/sass_spec.rb
hamlit-1.6.3 spec/hamlit/filters/sass_spec.rb
hamlit-1.6.2 spec/hamlit/filters/sass_spec.rb
hamlit-1.6.1 spec/hamlit/filters/sass_spec.rb
hamlit-1.6.0 spec/hamlit/filters/sass_spec.rb
hamlit-1.5.9 spec/hamlit/filters/sass_spec.rb
hamlit-1.5.8 spec/hamlit/filters/sass_spec.rb
hamlit-1.5.7 spec/hamlit/filters/sass_spec.rb
hamlit-1.5.6 spec/hamlit/filters/sass_spec.rb
hamlit-1.5.5 spec/hamlit/filters/sass_spec.rb
hamlit-1.5.4 spec/hamlit/filters/sass_spec.rb