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.60.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.59.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.58.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.57.1 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.57.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.56.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.55.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.54.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.53.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.52.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.51.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.50.3 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.50.2 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.50.1 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.50.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.49.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.48.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.47.1 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.47.0 spec/scss_lint/linter/trailing_whitespace_spec.rb
scss_lint-0.46.0 spec/scss_lint/linter/trailing_whitespace_spec.rb