module Minitest::Data::Test
Attributes
data_attribute[RW]
data_label[RW]
Public Class Methods
prepended(klass)
click to toggle source
# File lib/minitest/data.rb, line 8 def prepended(klass) klass.extend(ClassMethods) end
Public Instance Methods
location()
click to toggle source
# File lib/minitest/data.rb, line 65 def location label_string = "" label_string = "(#{self.data_label})" if self.data_label loc = " [#{self.failure.location}]" unless passed? or error? "#{self.class}##{self.name}#{label_string}#{loc}" end
run()
click to toggle source
# File lib/minitest/data.rb, line 72 def run with_info_handler do time_it do capture_exceptions do before_setup; setup; after_setup if data_attribute self.send self.name, data_attribute else self.send self.name end end Minitest::Test::TEARDOWN_METHODS.each do |hook| capture_exceptions do self.send hook end end end end self end