search for: organizationtest

Displaying 1 result from an estimated 1 matches for "organizationtest".

2006 Aug 14
6
Testing fails with fixtures not when invoked directly
I have three files organization.rb, company.rb, and department.rb. I want to ensure the department always has a company require File.dirname(__FILE__) + ''/../test_helper'' class OrganizationTest < Test::Unit::TestCase fixtures :organizations def setup @smo = organizations(:smo) end def test_department_company_defaults_to_parent org = Department.new(:name => ''company'',:cost_code => ''123'', :parent_id => organizations(:root_dept))...