diff --git a/test/unit/virtual_community_test.rb b/test/unit/virtual_community_test.rb index d2dc605..435c922 100644 --- a/test/unit/virtual_community_test.rb +++ b/test/unit/virtual_community_test.rb @@ -63,4 +63,12 @@ class VirtualCommunityTest < Test::Unit::TestCase assert !v.errors.invalid?(:name) end + def test_terms_of_use + v = VirtualCommunity.new(:name => 'My test virtual community') + v.terms_of_use = 'To be part of this virtual community, you must accept the following terms: ...' + assert v.save + id = v.id + assert_equal 'To be part of this virtual community, you must accept the following terms: ...', VirtualCommunity.find(id).terms_of_use + end + end -- libgit2 0.21.2