public function testUpdate()
 {
     $this->resetRoomTypesTable();
     $roomType = new RoomType();
     $roomType->setAttributes(array('description' => 'Double Room', 'quantity' => 2));
     $this->testAdd();
     $roomType->setAttribute('description', 'Tripple Room');
     $roomType->save();
     $criteria = new CDbCriteria();
     $criteria->condition = 'description=:description';
     $criteria->params = array(':description' => 'Tripple Room');
     $roomType = RoomType::model()->find($criteria);
     $this->assertNotNull($roomType);
 }