Sha256: f2c5451424c1cc31bd9ac889d3eb87c3c8f4d141fff10764bed1e954a9955d82
Contents?: true
Size: 1.17 KB
Versions: 10
Compression:
Stored size: 1.17 KB
Contents
require 'spec_helper' describe SCSSLint::Linter::PlaceholderInExtend do context 'when extending with a class' do let(:css) { <<-CSS } p { @extend .error; } CSS it { should report_lint line: 2 } end context 'when extending with a type' do let(:css) { <<-CSS } p { @extend span; } CSS it { should report_lint line: 2 } end context 'when extending with an id' do let(:css) { <<-CSS } p { @extend #some-identifer; } CSS it { should report_lint line: 2 } end context 'when extending with a placeholder' do let(:css) { <<-CSS } p { @extend %placeholder; } CSS it { should_not report_lint } end context 'when extending with a selector whose prefix is not a placeholder' do let(:css) { <<-CSS } p { @extend .blah-\#{$dynamically_generated_name}; } CSS it { should report_lint line: 2 } end context 'when extending with a selector whose prefix is dynamic' do let(:css) { <<-CSS } p { @extend \#{$dynamically_generated_placeholder_name}; } CSS it { should_not report_lint } end end
Version data entries
10 entries across 10 versions & 1 rubygems