Method: Ccls::FactoryTestHelper#create_study_subject_with_childid
- Defined in:
- lib/ccls_engine/factory_test_helper.rb
#create_study_subject_with_childid(childid) ⇒ Object
116 117 118 119 120 121 122 123 |
# File 'lib/ccls_engine/factory_test_helper.rb', line 116 def create_study_subject_with_childid(childid) StudySubject.any_instance.stubs(:get_next_childid).returns(childid) study_subject = Factory(:study_subject) StudySubject.any_instance.unstub(:get_next_childid) assert_not_nil study_subject.childid assert_equal childid.to_s, study_subject.childid.to_s study_subject end |