spec/scss_lint/linter/comment_spec.rb in scss-lint-0.37.0 vs spec/scss_lint/linter/comment_spec.rb in scss-lint-0.38.0
- old
+ new
@@ -50,6 +50,30 @@
}
SCSS
it { should report_lint line: 2 }
end
+
+ context 'when multi-line comment is allowed by config' do
+ let(:linter_config) { { 'allowed' => '^[/\\* ]*Copyright' } }
+ let(:scss) { <<-SCSS }
+ /* Copyright someone. */
+ a {
+ color: #DDD;
+ }
+ SCSS
+
+ it { should_not report_lint }
+ end
+
+ context 'when multi-line comment is not allowed by config' do
+ let(:linter_config) { { 'allowed' => '^[/\\* ]*Copyright' } }
+ let(:scss) { <<-SCSS }
+ /* Other multiline. */
+ p {
+ color: #DDD;
+ }
+ SCSS
+
+ it { should report_lint }
+ end
end