Commit c0a9c8ff29a3c15dfc8625a29a252f76be656690
1 parent
5b357c56
Exists in
master
and in
29 other branches
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,4 +94,11 @@ class OrganizationTest < Test::Unit::TestCase | ||
94 | assert_same empty, org.find_processed_validation('lalalala') | 94 | assert_same empty, org.find_processed_validation('lalalala') |
95 | end | 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 | end | 104 | end |