From c0a9c8ff29a3c15dfc8625a29a252f76be656690 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Fri, 18 Jan 2008 18:30:02 +0000 Subject: [PATCH] ActionItem152: adding test to organization --- test/unit/organization_test.rb | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/test/unit/organization_test.rb b/test/unit/organization_test.rb index cef60fc..8525181 100644 --- a/test/unit/organization_test.rb +++ b/test/unit/organization_test.rb @@ -94,4 +94,11 @@ class OrganizationTest < Test::Unit::TestCase assert_same empty, org.find_processed_validation('lalalala') end + should 'have boxes and blocks upon creation' do + profile = Organization.create!(:name => 'test org', :identifier => 'testorg') + + assert profile.boxes.size > 0 + assert profile.blocks.size > 0 + end + end -- libgit2 0.21.2