porting changes to rails 2: fixing usage for stage_parent. moving tasks_controller_spec to keep consistent with materials_controller_spec