Method: NanDoc::Project#testdir

Defined in:
lib/nandoc/core/project.rb

#testdirObject



34
35
36
37
38
39
40
41
# File 'lib/nandoc/core/project.rb', line 34

def testdir
  @testdir ||= begin
    tries = [project_root+'/test', project_root+'/spec']
    found = tries.detect{ |path| File.directory?(path) }
    fail("Couldn't find test dir for gem at (#{tries*', '})") unless found
    found
  end
end