test/test_addressbook.rb in ruby_protobuf-0.2.0 vs test/test_addressbook.rb in ruby_protobuf-0.3.0
- old
+ new
@@ -17,12 +17,13 @@
end
end
def test_initial_value
person = Tutorial::Person.new
- assert_equal '', person.name
- assert_equal 0, person.id
+ assert_nil person.name
+ assert_nil person.id
assert_equal [], person.phone
+ assert_equal '', person.email
end
def test_repeatable
address_book = Tutorial::AddressBook.new
assert_equal [], address_book.person