test/phonelib_test.rb in phonelib-0.2.3 vs test/phonelib_test.rb in phonelib-0.2.4

- old
+ new

@@ -206,7 +206,13 @@ should 'not fail when no phone passed and default country set' do Phonelib.default_country = :UA phone = Phonelib.parse(nil) assert phone.invalid? end + + should 'be valid when number invalid for default country' do + Phonelib.default_country = :CN + phone = Phonelib.parse('+41 44 668 18 00') + assert phone.valid? + end end end