spec/language_spec.rb in rconf-0.7.8 vs spec/language_spec.rb in rconf-0.7.9
- old
+ new
@@ -17,13 +17,13 @@
lang = RightConf::Language.parse('toto')
lang.validation_errors.size.should == 1
lang.validation_errors.first.should == "Invalid syntax, expecting block after 'toto'"
end
- it 'should invalidate non-existent configurator' do
+ it 'should warn about non-existent configurator' do
lang = RightConf::Language.parse('toto { 42 }')
- lang.validation_errors.size.should == 1
- lang.validation_errors.first.should == "Unknown configurator 'toto'"
+ lang.warnings.size.should == 1
+ lang.warnings.first.should == "Unknown configurator 'toto'"
end
it 'should parse correctly' do
lang = RightConf::Language.parse('ruby { version "1"; rubygems "2" }')
lang.validation_errors.size.should == 0