Module: RelatedFile::Assertions::ClassMethods

Includes:
Test::Unit::Assertions
Included in:
RelatedFile
Defined in:
app/models/related_file.rb

Instance Method Summary collapse

Instance Method Details

#assert_invariantObject

conditions that are always true (at least atomically)


117
118
119
# File 'app/models/related_file.rb', line 117

def assert_invariant
#	fail "end of assert_invariant "
end

#assert_post_conditionsObject

assertions true after class (and nested module Examples) is defined


126
127
128
# File 'app/models/related_file.rb', line 126

def assert_post_conditions
	assert_equal(TE, FilePattern::Examples::SELF)
end

#assert_pre_conditionsObject

conditions true while class is being defined


121
122
123
124
# File 'app/models/related_file.rb', line 121

def assert_pre_conditions
	assert_respond_to(FilePattern, :new_from_path?)
	assert_module_included(self, FilePattern::Assertions)
end