Sha256: 1a31a1fc08f753db5c3802f1f0fb54c76518f62e170b436ececabe08f2e9ecb2

Contents?: true

Size: 431 Bytes

Versions: 11

Compression:

Stored size: 431 Bytes

Contents

module CapsuleCD
  module RSpecSupport
    module FileSystem
      def test_directory
        'spec/tmp'
      end

      def test_directory_contents
        Dir.glob(File.join(test_directory, '*/**'))
      end

      def make_test_directory
        FileUtils.mkdir_p(test_directory)
      end

      def remove_test_directory
        FileUtils.remove_dir(test_directory) if Dir.exist?(test_directory)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
capsulecd-1.0.11 spec/support/file_system.rb
capsulecd-1.0.10 spec/support/file_system.rb
capsulecd-1.0.9 spec/support/file_system.rb
capsulecd-1.0.8 spec/support/file_system.rb
capsulecd-1.0.7 spec/support/file_system.rb
capsulecd-1.0.6 spec/support/file_system.rb
capsulecd-1.0.5 spec/support/file_system.rb
capsulecd-1.0.4 spec/support/file_system.rb
capsulecd-1.0.3 spec/support/file_system.rb
capsulecd-1.0.1 spec/support/file_system.rb
capsulecd-1.0.0 spec/support/file_system.rb