spec/scss_lint/options_spec.rb in scss-lint-0.31.0 vs spec/scss_lint/options_spec.rb in scss-lint-0.32.0
- old
+ new
@@ -13,27 +13,19 @@
it 'defines no files to lint by default' do
subject[:files].should be_empty
end
it 'specifies the DefaultReporter by default' do
- subject[:reporters].first.should include SCSSLint::Reporter::DefaultReporter
+ subject[:reporters].first.should include 'Default'
end
it 'outputs to STDOUT' do
subject[:reporters].first.should include :stdout
end
end
context 'when a non-existent flag is specified' do
let(:args) { ['--totally-made-up-flag'] }
-
- it 'raises an error' do
- expect { subject }.to raise_error SCSSLint::Exceptions::InvalidCLIOption
- end
- end
-
- context 'when a non-existent reporter is specified' do
- let(:args) { %w[--format NonExistentReporter] }
it 'raises an error' do
expect { subject }.to raise_error SCSSLint::Exceptions::InvalidCLIOption
end
end