Sha256: 22ae9cff8bb471bc2e951238e1b29b08da178ec1488a4bd417367d56be3cf5a4

Contents?: true

Size: 851 Bytes

Versions: 12

Compression:

Stored size: 851 Bytes

Contents

describe Hamlit::Filters::Scss do
  describe '#compile' do
    it 'renders scss filter' do
      assert_render(<<-HAML, <<-HTML, compatible_only: :haml)
        :scss
          .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)
        :scss
          .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/scss_spec.rb
hamlit-1.6.4 spec/hamlit/filters/scss_spec.rb
hamlit-1.6.3 spec/hamlit/filters/scss_spec.rb
hamlit-1.6.2 spec/hamlit/filters/scss_spec.rb
hamlit-1.6.1 spec/hamlit/filters/scss_spec.rb
hamlit-1.6.0 spec/hamlit/filters/scss_spec.rb
hamlit-1.5.9 spec/hamlit/filters/scss_spec.rb
hamlit-1.5.8 spec/hamlit/filters/scss_spec.rb
hamlit-1.5.7 spec/hamlit/filters/scss_spec.rb
hamlit-1.5.6 spec/hamlit/filters/scss_spec.rb
hamlit-1.5.5 spec/hamlit/filters/scss_spec.rb
hamlit-1.5.4 spec/hamlit/filters/scss_spec.rb