Sha256: a2c1cfa450307a6900c76c79f588d0efa14c37342e05c88c49f7cba41e9525dc

Contents?: true

Size: 470 Bytes

Versions: 40

Compression:

Stored size: 470 Bytes

Contents

require 'spec_helper'

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

    it { should report_lint line: 1 }
  end

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

    it { should report_lint line: 6 }
  end
end

Version data entries

40 entries across 40 versions & 3 rubygems

Version Path
scss_lint-0.45.0 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.44.0 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.43.2 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.43.1 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.43.0 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.42.2 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.42.1 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.42.0 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.41.0 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.40.1 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.40.0 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.39.0 spec/scss_lint/linter/empty_rule_spec.rb
scss_lint-0.38.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.38.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-bliss-1.0.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.37.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.36.1 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.36.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.35.0 spec/scss_lint/linter/empty_rule_spec.rb
scss-lint-0.34.0 spec/scss_lint/linter/empty_rule_spec.rb