Method: Ccls::FactoryTestHelper#create_study_subject_with_patid
- Defined in:
- lib/ccls_engine/factory_test_helper.rb
#create_study_subject_with_patid(patid) ⇒ Object Also known as: create_study_subject_with_studyid
129 130 131 132 133 134 135 136 |
# File 'lib/ccls_engine/factory_test_helper.rb', line 129 def create_study_subject_with_patid(patid) study_subject = Factory(:study_subject) #not case so shouldn't create patid assert_nil study_subject.patid study_subject.update_attribute(:patid, patid) assert_not_nil study_subject.patid assert_equal patid.to_s, study_subject.patid.to_s study_subject end |