Sha256: 0b4576096c9b3f3c931f6486824e34e18958a1468ddd40f76a36ef3efff26f91

Contents?: true

Size: 464 Bytes

Versions: 10

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'

describe SCSSLint::Linter::EmptyRule do
  context 'when rule is empty' do
    let(:css) { <<-CSS }
      p {
      }
    CSS

    it { should report_lint line: 1 }
  end

  context 'when rule contains an empty nested rule' do
    let(:css) { <<-CSS }
      p {
        background: #000;
        display: none;
        margin: 5px;
        padding: 10px;
        a {
        }
      }
    CSS

    it { should report_lint line: 6 }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
scss-lint-0.33.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.32.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.31.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.30.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.29.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.28.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.27.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.26.2 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.26.1 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.26.0 spec/scss_lint/linter/empty_rule_spec.rb