Sha256: 30155ca302853a60c5560ef1cc84ac2fc3e44567a157f730659dc56913f229ef

Contents?: true

Size: 827 Bytes

Versions: 17

Compression:

Stored size: 827 Bytes

Contents

describe Hamlit::Filters::Less do
  describe '#compile' do
    it 'renders less filter' do
      assert_render(<<-HAML, <<-HTML, compatible_only: :haml, error_with: :faml)
        :less
          .users_controller {
            .show_action {
              margin: 10px;
              padding: 20px;
            }
          }
      HAML
        <style>
          .users_controller .show_action {
            margin: 10px;
            padding: 20px;
          }
        </style>
      HTML
    end

    it 'parses string interpolation' do
      assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml)
        :less
          .foo {
            content: "#{'<&>'}";
          }
      HAML
        <style>
          .foo {
            content: "<&>";
          }
        </style>
      HTML
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hamlit-1.7.2 spec/hamlit/filters/less_spec.rb
hamlit-1.7.1 spec/hamlit/filters/less_spec.rb
hamlit-1.7.0 spec/hamlit/filters/less_spec.rb
hamlit-1.6.7 spec/hamlit/filters/less_spec.rb
hamlit-1.6.6 spec/hamlit/filters/less_spec.rb
hamlit-1.6.5 spec/hamlit/filters/less_spec.rb
hamlit-1.6.4 spec/hamlit/filters/less_spec.rb
hamlit-1.6.3 spec/hamlit/filters/less_spec.rb
hamlit-1.6.2 spec/hamlit/filters/less_spec.rb
hamlit-1.6.1 spec/hamlit/filters/less_spec.rb
hamlit-1.6.0 spec/hamlit/filters/less_spec.rb
hamlit-1.5.9 spec/hamlit/filters/less_spec.rb
hamlit-1.5.8 spec/hamlit/filters/less_spec.rb
hamlit-1.5.7 spec/hamlit/filters/less_spec.rb
hamlit-1.5.6 spec/hamlit/filters/less_spec.rb
hamlit-1.5.5 spec/hamlit/filters/less_spec.rb
hamlit-1.5.4 spec/hamlit/filters/less_spec.rb