Method: Arrow::TestCase#skip

Defined in:
lib/arrow/testcase.rb

#skip(reason = nil) ⇒ Object

Skip the current step (called from #setup) with the reason given.



202
203
204
205
206
207
208
209
210
211
# File 'lib/arrow/testcase.rb', line 202

def skip( reason=nil )
	if reason
		msg = "Skipping %s: %s" % [ @method_name, reason ]
	else
		msg = "Skipping %s: No reason given." % @method_name
	end

	$stderr.puts( msg ) if $VERBOSE
	@method_name = :skipped_test
end