spec/scss_lint/linter/indentation_spec.rb in scss-lint-0.30.0 vs spec/scss_lint/linter/indentation_spec.rb in scss-lint-0.31.0
- old
+ new
@@ -140,9 +140,20 @@
CSS
it { should_not report_lint }
end
+ context 'when @at-root directive with no inline selector contains comment' do
+ let(:css) { <<-CSS }
+ @at-root {
+ // A comment that causes a crash
+ .something-else {}
+ }
+ CSS
+
+ it { should_not report_lint }
+ end
+
context 'when the indentation width has been explicitly set' do
let(:linter_config) { { 'width' => 3 } }
let(:css) { <<-CSS }
p {