vendor/gems/BlueCloth-1.0.0/tests/bctestcase.rb
### Assert that the specified +object+ has an instance variable which
### matches the specified +sym+. The '@' at the beginning of the +sym+
### will be prepended if not present.
Assert that the specified +object+ has an instance variable which
matches the specified +sym+. The '@' at the beginning of the +sym+
will be prepended if not present.
Assert that the specified + object + has an instance variable which matches the specified + sym + . The ' @ ' at the beginning of the + sym + will be prepended if not present .
def assert_has_ivar( sym, object )
			sym = "@#{sym}" unless /^@/ =~ sym.to_s
			msg = "Object <%s> expected to have an instance variable <%s>" %
				[ object.inspect, sym ]
			assert_block( msg ) {
				object.instance_variables.include?( sym.to_s )
			}
		end
def assert_has_ivar ( sym , object ) sym = "@#{sym}" unless / ^@ / =~ sym . to_s msg = "Object <%s> expected to have an instance variable <%s>" % [ object . inspect , sym ] assert_block ( msg ) { object . instance_variables . include? ( sym . to_s ) } end
Assert that the specified +object+ has an instance variable which
matches the specified +sym+.
Assert that the specified + object + has an instance variable which matches the specified + sym + .
sym
<not_specific>
object
<not_specific>