spec/scss_lint/linter/comment_spec.rb in scss-lint-0.33.0 vs spec/scss_lint/linter/comment_spec.rb in scss-lint-0.34.0

- old
+ new

@@ -1,55 +1,55 @@ require 'spec_helper' describe SCSSLint::Linter::Comment do context 'when no comments exist' do - let(:css) { <<-CSS } + let(:scss) { <<-SCSS } p { margin: 0; } - CSS + SCSS it { should_not report_lint } end context 'when comment is a single line comment' do - let(:css) { '// Single line comment' } + 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(:css) { <<-CSS } + let(:scss) { <<-SCSS } p { margin: 0; // Comment at end of line } - CSS + SCSS it { should_not report_lint } end context 'when comment is a multi-line comment' do - let(:css) { <<-CSS } + let(:scss) { <<-SCSS } h1 { color: #eee; } /* * This is a multi-line comment that should report a lint */ p { color: #DDD; } - CSS + SCSS it { should report_lint line: 4 } end context 'when multi-line-style comment is a at the end of a line' do - let(:css) { <<-CSS } + let(:scss) { <<-SCSS } h1 { color: #eee; /* This is a comment */ } - CSS + SCSS it { should report_lint line: 2 } end end