Sha256: 732b9551bfe1cf681f11069b705ab0c934e73a3ba58ede7b702cf38348b7514c

Contents?: true

Size: 504 Bytes

Versions: 25

Compression:

Stored size: 504 Bytes

Contents

require 'spec_helper'

describe SCSSLint::Linter::SpaceAfterVariableName do
  let(:scss) { <<-SCSS }
    $none: #fff;
    $one : #fff;
    $two  : #fff;
   SCSS

  it { should_not report_lint line: 1 }
  it { should report_lint line: 2 }
  it { should report_lint line: 3 }

  context 'when a map contains aligned colons' do
    let(:scss) { <<-SCSS }
      $map: (
        'one'   : 350px,
        'two'   : 450px,
        'three' : 560px,
      );
    SCSS

    it { should_not report_lint }
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
scss_lint-0.60.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.59.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.58.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.57.1 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.57.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.56.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.55.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.54.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.53.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.52.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.51.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.50.3 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.50.2 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.50.1 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.50.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.49.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.48.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.47.1 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.47.0 spec/scss_lint/linter/space_after_variable_name_spec.rb
scss_lint-0.46.0 spec/scss_lint/linter/space_after_variable_name_spec.rb