Module: TestBalancer::Specs

Extended by:
Specs
Included in:
Specs
Defined in:
lib/test_balancer/specs.rb

Defined Under Namespace

Classes: Formatter, Test

Instance Method Summary collapse

Instance Method Details

#all(root) ⇒ Object



7
8
9
10
11
12
# File 'lib/test_balancer/specs.rb', line 7

def all root
  root = Pathname.new(root)
  return Dir[root.join('spec/**/*_spec.rb')].map{ |path|
    Test.new(Pathname.new(path).relative_path_from(root))
  }
end