Sha256: 550cd1ba37f31c8cf20108f27efaa89c5f9585a7d916cf89dcf1b810f5bdda67

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 Bytes

Contents

require 'test_helper'

class Ccls::FollowUpTest < ActiveSupport::TestCase

	assert_should_create_default_object
	assert_should_initially_belong_to(
		:section,
		:enrollment,
		:follow_up_type)

	test "explicit Factory follow_up test" do
		assert_difference('FollowUpType.count',1) {
		assert_difference('Enrollment.count',2) {	#	again, creates subject, which creates ccls enrollment
		assert_difference('Section.count',1) {
		assert_difference('FollowUp.count',1) {
			follow_up = Factory(:follow_up)
			assert_not_nil follow_up.section
			assert_not_nil follow_up.enrollment
			assert_not_nil follow_up.follow_up_type
		} } } }
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ccls-ccls_engine-3.11.0 test/unit/ccls/follow_up_test.rb