模块 Test::Unit::Priority::ClassMethods

公共实例方法

priority(name, *tests) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/priority.rb, line 175
def priority(name, *tests)
  unless Checker.have_priority?(name)
    raise ArgumentError, "unknown priority: #{name}"
  end
  attribute(:priority, name, {:keep => true}, *tests)
end