From 2d1f39480f66a0b41d8762df21cf4f2769aa3c4c Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Thu, 19 Jul 2007 19:15:45 +0000 Subject: [PATCH] ActionItem9: virtual community must have terms of use --- test/unit/virtual_community_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) 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