Sha256: 23f5676a943e8ce1d725e762d707ed39a96d4d9df64d13c23ea33ecd6e4f515c

Contents?: true

Size: 590 Bytes

Versions: 36

Compression:

Stored size: 590 Bytes

Contents

describe Hamlit::Filters::Css do
  describe '#compile' do
    it 'renders css' do
      assert_render(<<-HAML, <<-HTML)
        :css
          .foo {
            width: 100px;
          }
      HAML
        <style>
          .foo {
            width: 100px;
          }
        </style>
      HTML
    end

    it 'parses string interpolation' do
      assert_render(<<-'HAML', <<-HTML)
        :css
          .foo {
            width: #{100 * 3}px;
          }
      HAML
        <style>
          .foo {
            width: 300px;
          }
        </style>
      HTML
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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