Sha256: 2fceaf7c5ef47a1aba956631f23a0dee88248405a85546669147fed2cde5e616
Contents?: true
Size: 851 Bytes
Versions: 4
Compression:
Stored size: 851 Bytes
Contents
require 'spec_helper' describe SCSSLint::Linter::SpaceAfterPropertyName do context 'when a property name is followed by a space' do let(:css) { <<-CSS } p { margin : 0; } CSS it { should report_lint line: 2 } end context 'when a property name is not followed by a space' do let(:css) { <<-CSS } p { margin: 0; } CSS it { should_not report_lint } end context 'when interpolation within single quotes is followed by inline property' do context 'and property name is followed by a space' do let(:css) { "[class~='\#{$test}'] { width: 100%; }" } it { should_not report_lint } end context 'and property name is not followed by a space' do let(:css) { "[class~='\#{$test}'] { width : 100%; }" } it { should report_lint } end end end
Version data entries
4 entries across 4 versions & 1 rubygems