test/phonelib_test.rb in phonelib-0.2.1 vs test/phonelib_test.rb in phonelib-0.2.2

- old
+ new

@@ -195,7 +195,13 @@ should 'valid with wrong default country set' do Phonelib.default_country = :UA phone = Phonelib.parse('972541234567') assert phone.valid? end + + should 'not fail when no phone passed and default country set' do + Phonelib.default_country = :UA + phone = Phonelib.parse(nil) + assert phone.invalid? + end end end