Module: OpenTaxSolver::Assertions

Extended by:
Test::Unit::Assertions
Includes:
Test::Unit::Assertions
Included in:
OpenTaxSolver
Defined in:
app/models/open_tax_solver.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#assert_pre_conditionsObject


173
174
175
176
177
178
179
180
181
182
183
184
185
# File 'app/models/open_tax_solver.rb', line 173

def assert_pre_conditions
		assert_instance_of(OpenTaxSolver, self)
		assert_instance_of(Hash, self.attributes)
		assert_respond_to(self.attributes, :values)
		assert_scope_path(:DefaultAssertions, :ClassMethods)
		assert_constant_instance_respond_to(:NoDB, :insert_sql)
		assert_include(self.class.included_modules, NoDB)
#		assert_include(NoDB.methods, :insert_sql)
		assert_includes(self.methods, :insert_sql)
		explain_assert_respond_to(self, :insert_sql)
		assert_respond_to(self, :insert_sql)
		assert_instance_of(Array, attributes.values)
end