Sha256: ccd068e3ccd9783805a5e29a92997ba294355724b552f744e1678b2ecf7e9744
Contents?: true
Size: 693 Bytes
Versions: 1
Compression:
Stored size: 693 Bytes
Contents
require 'test_helper' class Ccls::StudySubjectInterviewsTest < ActiveSupport::TestCase test "should NOT destroy interviews with study_subject" do assert_difference('StudySubject.count',1) { assert_difference('Interview.count',1) { @study_subject = Factory(:interview).study_subject } } assert_difference('StudySubject.count',-1) { assert_difference('Interview.count',0) { @study_subject.destroy } } end test "should not have hx_interview" do study_subject = create_study_subject assert_nil study_subject.hx_interview end test "should have hx_interview" do study_subject = create_hx_interview_study_subject assert_not_nil study_subject.hx_interview end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | test/unit/ccls/study_subject_interviews_test.rb |