Module: GenericFiles::Assertions

Includes:
Test::Unit::Assertions
Included in:
GenericFiles, OpenTaxFormFiller::Pjsons, OpenTaxSolver
Defined in:
app/models/generic_file.rb

Overview

Constants

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#assert_post_conditionsObject

assert_pre_conditions


59
60
# File 'app/models/generic_file.rb', line 59

def assert_post_conditions
end

#assert_pre_conditionsObject

ClassMethods


51
52
53
54
55
56
57
58
# File 'app/models/generic_file.rb', line 51

def assert_pre_conditions
		assert_instance_of(Hash, self.attributes)
		assert_respond_to(self.attributes, :values)
		assert_constant_instance_respond_to(:NoDB, :insert_sql)
		assert_include(self.class.included_modules, NoDB)
#		assert_include(NoDB.methods, :insert_sql)
		assert_instance_of(Array, attributes.values)
end