Sha256: 3d2228b95cc748102d28260075c54636449cb18d4b4a63488e54f5f7cd03807b

Contents?: true

Size: 432 Bytes

Versions: 9

Compression:

Stored size: 432 Bytes

Contents

module Minimart
  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.exists?(test_directory)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
minimart-1.2.5 spec/support/file_system.rb
minimart-1.2.4 spec/support/file_system.rb
minimart-1.2.3 spec/support/file_system.rb
minimart-1.2.0 spec/support/file_system.rb
minimart-1.1.6 spec/support/file_system.rb
minimart-1.1.3 spec/support/file_system.rb
minimart-1.0.2 spec/support/file_system.rb
minimart-1.0.1 spec/support/file_system.rb
minimart-0.0.1 spec/support/file_system.rb