Commit 2d1f39480f66a0b41d8762df21cf4f2769aa3c4c

Authored by AntonioTerceiro
1 parent 50c8896f

ActionItem9: virtual community must have terms of use



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@103 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
test/unit/virtual_community_test.rb
... ... @@ -63,4 +63,12 @@ class VirtualCommunityTest < Test::Unit::TestCase
63 63 assert !v.errors.invalid?(:name)
64 64 end
65 65  
  66 + def test_terms_of_use
  67 + v = VirtualCommunity.new(:name => 'My test virtual community')
  68 + v.terms_of_use = 'To be part of this virtual community, you must accept the following terms: ...'
  69 + assert v.save
  70 + id = v.id
  71 + assert_equal 'To be part of this virtual community, you must accept the following terms: ...', VirtualCommunity.find(id).terms_of_use
  72 + end
  73 +
66 74 end
... ...