test/pelusa/configuration_test.rb in pelusa-0.1.0 vs test/pelusa/configuration_test.rb in pelusa-0.1.1
- old
+ new
@@ -19,9 +19,16 @@
describe '#sources' do
it 'returns path to sources' do
configuration.sources.must_equal 'lib/**/*.rb'
end
+
+ describe 'by default' do
+ it 'returns lib/**/*.rb' do
+ empty_configuration = Pelusa::Configuration.new("unexistent_yml")
+ empty_configuration.sources.must_equal 'lib/**/*.rb'
+ end
+ end
end
describe '#enabled_lints' do
let(:enabled_lints) { Lint.all - [ Pelusa::Lint::ElseClauses ] }