Sha256: f84d95835600e1261f3103a07981c8071ab6b55fb42b6a98db86cae11c39ff7d

Contents?: true

Size: 1.55 KB

Versions: 29

Compression:

Stored size: 1.55 KB

Contents

require 'spec_helper'

describe SCSSLint::Linter::TransitionAll do
  context 'when transition-property is not set' do
    let(:scss) { <<-SCSS }
      p {
      }
    SCSS

    it { should_not report_lint }
  end

  context 'when transition-property is set to none' do
    let(:scss) { <<-SCSS }
      p {
        transition-property: none;
      }
    SCSS

    it { should_not report_lint }
  end

  context 'when transition-property is not set to all' do
    let(:scss) { <<-SCSS }
      p {
        transition-property: color;
      }
    SCSS

    it { should_not report_lint }
  end

  context 'when transition-property is set to all' do
    let(:scss) { <<-SCSS }
      p {
        transition-property: all;
      }
    SCSS

    it { should report_lint line: 2 }
  end

  context 'when transition shorthand for transition-property is not set' do
    let(:scss) { <<-SCSS }
      p {
      }
    SCSS

    it { should_not report_lint }
  end

  context 'when transition shorthand for transition-property is set to none' do
    let(:scss) { <<-SCSS }
      p {
        transition: none;
      }
    SCSS

    it { should_not report_lint }
  end

  context 'when transition shorthand for transition-property is not set to all' do
    let(:scss) { <<-SCSS }
      p {
        transition: color 1s linear;
      }
    SCSS

    it { should_not report_lint }
  end

  context 'when transition shorthand for transition-property is set to all' do
    let(:scss) { <<-SCSS }
      p {
        transition: all 1s linear;
      }
    SCSS

    it { should report_lint line: 2 }
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

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