Module: Tap::Test::FileTest::ClassMethods

Defined in:
lib/tap/test/file_test/class_methods.rb

Overview

Class methods extending tests which include FileTest.

Instance Attribute Summary collapse

Instance Attribute Details

#class_rootObject

The class-level test root (a Tap::Root)



14
15
16
# File 'lib/tap/test/file_test/class_methods.rb', line 14

def class_root
  @class_root ||= Root.new(Dir.tmpdir)
end

#cleanup_dirsObject

An array of directories to be cleaned up by cleanup (default [‘.’])



22
23
24
# File 'lib/tap/test/file_test/class_methods.rb', line 22

def cleanup_dirs
  @cleanup_dirs ||= ['.']
end