Commit c0a9c8ff29a3c15dfc8625a29a252f76be656690

Authored by AntonioTerceiro
1 parent 5b357c56

ActionItem152: adding test to organization


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1221 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
test/unit/organization_test.rb
... ... @@ -94,4 +94,11 @@ class OrganizationTest < Test::Unit::TestCase
94 94 assert_same empty, org.find_processed_validation('lalalala')
95 95 end
96 96  
  97 + should 'have boxes and blocks upon creation' do
  98 + profile = Organization.create!(:name => 'test org', :identifier => 'testorg')
  99 +
  100 + assert profile.boxes.size > 0
  101 + assert profile.blocks.size > 0
  102 + end
  103 +
97 104 end
... ...