Class: MiniTest::Unit::TestCase

Inherits:
Object
  • Object
show all
Extended by:
Tap::Test::Extensions
Defined in:
lib/tap/spec.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Tap::Test::Extensions

acts_as_file_test, acts_as_script_test, acts_as_subset_test, acts_as_tap_test

Class Method Details

.skip_test(msg = nil) ⇒ Object

Causes a test suite to be skipped. If a message is given, it will print and notify the user the test suite has been skipped.



13
14
15
16
# File 'lib/tap/spec.rb', line 13

def skip_test(msg=nil)
  @@test_suites.delete(self)
  puts "Skipping #{self}#{msg.empty? ? '' : ': ' + msg}"
end

Instance Method Details

#method_nameObject



34
35
36
# File 'lib/tap/spec.rb', line 34

def method_name
  @method_name ||= name.gsub(/\s/, "_").gsub(/^test_/, "")
end