Module: Url::Assertions

Includes:
DefaultAssertions
Included in:
Url
Defined in:
app/models/url.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#assert_pre_conditionsObject

ClassMethods


87
88
89
90
91
92
93
94
# File 'app/models/url.rb', line 87

def assert_pre_conditions
	assert_instance_of(Url, self)
	stream_methods= StreamMethod.find_all_by_name(scheme)
	assert_not_nil(stream_methods)
	assert_instance_of(Array, stream_methods)
	assert_single_element_array(stream_methods)
#	fail "end of instance assert_pre_conditions"
end