Sha256: 3af977264116bc62b28031c635dc856cc39c667acdfe1cf17a7adb25fe3e3e7a

Contents?: true

Size: 597 Bytes

Versions: 31

Compression:

Stored size: 597 Bytes

Contents

require 'spec_helper'

describe SCSSLint::Linter::TrailingWhitespace do
  context 'when lines contain trailing spaces' do
    let(:scss) { <<-SCSS }
      p {
        margin: 0;\s\s
      }
    SCSS

    it { should report_lint line: 2 }
  end

  context 'when lines contain trailing tabs' do
    let(:scss) { <<-SCSS }
      p {
        margin: 0;\t\t
      }
    SCSS

    it { should report_lint line: 2 }
  end

  context 'when lines does not contain trailing whitespace' do
    let(:scss) { <<-SCSS }
      p {
        margin: 0;
      }
    SCSS

    it { should_not report_lint }
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
scss_lint-0.45.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.44.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.43.2 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.43.1 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.43.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.42.2 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.42.1 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.42.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.41.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.40.1 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.40.0 spec/scss_lint/linter/trailing_whitespace_spec.rb