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

Version Path
hamlit-1.5.1 spec/hamlit/filters/sass_spec.rb
hamlit-1.5.0 spec/hamlit/filters/sass_spec.rb
hamlit-1.4.7 spec/hamlit/filters/sass_spec.rb
hamlit-1.4.6 spec/hamlit/filters/sass_spec.rb
hamlit-1.4.5 spec/hamlit/filters/sass_spec.rb
hamlit-1.4.3 spec/hamlit/filters/sass_spec.rb
hamlit-1.4.2 spec/hamlit/filters/sass_spec.rb
hamlit-1.4.1 spec/hamlit/filters/sass_spec.rb
hamlit-1.3.2 spec/hamlit/filters/sass_spec.rb
hamlit-1.3.1 spec/hamlit/filters/sass_spec.rb
hamlit-1.3.0 spec/hamlit/filters/sass_spec.rb
hamlit-1.2.1 spec/hamlit/filters/sass_spec.rb
hamlit-1.2.0 spec/hamlit/filters/sass_spec.rb
hamlit-1.1.1 spec/hamlit/filters/sass_spec.rb
hamlit-1.1.0 spec/hamlit/filters/sass_spec.rb
hamlit-1.0.0 spec/hamlit/filters/sass_spec.rb
hamlit-0.6.2 spec/hamlit/filters/sass_spec.rb
hamlit-0.6.1 spec/hamlit/filters/sass_spec.rb
hamlit-0.6.0 spec/hamlit/filters/sass_spec.rb
hamlit-0.5.3 spec/hamlit/filters/sass_spec.rb