Module: DefaultTests1

Includes:
DefaultTests0
Included in:
DefaultTests2
Defined in:
app/models/default_test_case.rb

Overview

DefaultTests0

Instance Method Summary collapse

Methods included from DefaultTests0

#related_files?

Instance Method Details

#test_case_pre_conditionsObject


74
75
76
77
78
79
# File 'app/models/default_test_case.rb', line 74

def test_case_pre_conditions
	assert_equal([DefaultTests1], Module.nesting)
	caller_message=" callers=#{caller.join("\n")}"
	assert_equal('Test', self.class.name[-4..-1], "2Naming convention is to end test class names with 'Test' not #{self.class.name}"+caller_message)
	assert_operator(1, :<=, names_of_tests?.size, "#{names_of_tests?.sort}")
end

#test_class_assert_invariantObject

test_case_pre_conditions


80
81
82
83
84
85
# File 'app/models/default_test_case.rb', line 80

def test_class_assert_invariant
#	assert_include(Module.constants, model_name?)
#	assert_not_nil(model_class?, "Define a class named #{TE.model_name?} or redefine model_name? to return correct class name.")
	model_class?.assert_invariant
#	fail "got to end of default test."
end