Class: Minitest::Runnable

Inherits:
Object show all
Defined in:
lib/rub/l/test.rb

Constant Summary collapse

@@rub_oldinherited =
method :inherited

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.inherited(klass) ⇒ Object



34
35
36
37
38
# File 'lib/rub/l/test.rb', line 34

def self.inherited klass
	::L::Test.make_test klass
	
	@@rub_oldinherited.call klass
end

.rub_get_dependanciesObject

Get tests dependencies.



63
64
65
# File 'lib/rub/l/test.rb', line 63

def self.rub_get_dependancies
	@rub_deps || Set.new
end

.rub_require(d) ⇒ Object

Add a dependency

Add a dependency to the test. It will be available before the test is run.

Parameters:

  • d (Set<Pathname,String>, Array<Pathname,String>, Pathname, String)

    The dependencies.



52
53
54
55
56
57
58
# File 'lib/rub/l/test.rb', line 52

def self.rub_require(d)
	d = R::Tool.make_set_paths d
	
	@rub_deps ||= Set.new
	
	@rub_deps.merge d
end

Instance Method Details

#rub_targetR::Target

The Rub target, this is set automatically.

Returns:



43
# File 'lib/rub/l/test.rb', line 43

cattr_accessor :rub_target