spec/spec_helper.rb in scss-lint-0.30.0 vs spec/spec_helper.rb in scss-lint-0.31.0
- old
+ new
@@ -14,10 +14,10 @@
config.before(:each) do
# If running a linter spec, run the described linter against the CSS code
# for each example. This significantly DRYs up our linter specs to contain
# only tests, since all the setup code is now centralized here.
- if described_class < SCSSLint::Linter
+ if described_class <= SCSSLint::Linter
initial_indent = css[/\A(\s*)/, 1]
normalized_css = css.gsub(/^#{initial_indent}/, '')
# Use the configuration settings defined by default unless a specific
# configuration has been provided for the test.