Module: TestConstruct
- Extended by:
- Helpers
- Defined in:
- lib/test_construct.rb,
lib/test_construct/helpers.rb,
lib/test_construct/version.rb,
lib/test_construct/rspec_integration.rb,
lib/test_construct/pathname_extensions.rb
Defined Under Namespace
Modules: Helpers, PathnameExtensions, RSpecIntegration
Constant Summary collapse
- CONTAINER_PREFIX =
'construct_container'
- VERSION =
"2.0.2"
Class Method Summary collapse
Methods included from Helpers
create_construct, setup_construct, teardown_construct, within_construct
Class Method Details
.destroy_all! ⇒ Object
17 18 19 20 21 |
# File 'lib/test_construct.rb', line 17 def self.destroy_all! Pathname.glob(File.join(tmpdir, CONTAINER_PREFIX + "*")) do |container| container.rmtree end end |
.tmpdir ⇒ Object
11 12 13 14 15 |
# File 'lib/test_construct.rb', line 11 def self.tmpdir dir = nil Dir.chdir Dir.tmpdir do dir = Dir.pwd end # HACK FOR OS X dir end |