Sha256: 8cabab0fd789ee060a6f054ed9170adde1faf12f32c9227d299c36dec060a8cd
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
require 'spec_helper' describe SCSSLint::Linter::Comment do context 'when no comments exist' do let(:scss) { <<-SCSS } p { margin: 0; } SCSS it { should_not report_lint } end context 'when comment is a single line comment' do let(:scss) { '// Single line comment' } it { should_not report_lint } end context 'when comment is a single line comment at the end of a line' do let(:scss) { <<-SCSS } p { margin: 0; // Comment at end of line } SCSS it { should_not report_lint } end context 'when comment is a multi-line comment' do let(:scss) { <<-SCSS } h1 { color: #eee; } /* * This is a multi-line comment that should report a lint */ p { color: #DDD; } SCSS it { should report_lint line: 4 } end context 'when multi-line-style comment is a at the end of a line' do let(:scss) { <<-SCSS } h1 { color: #eee; /* This is a comment */ } SCSS it { should report_lint line: 2 } end end
Version data entries
5 entries across 5 versions & 1 rubygems