Sha256: 2e4b35e9972c575d232885b98c665e4e02ac9f52dacb86ad5a782a83f58846ab

Contents?: true

Size: 590 Bytes

Versions: 73

Compression:

Stored size: 590 Bytes

Contents

shared_context 'metasploit_credential_importer_zip_file' do
  #
  # Methods
  #

  def remove_metasploit_credential_importer_zip_files
    # Using POSIX filepath here b/c we don't care about RSpec on Windows
    Dir.glob("/tmp/metasploit_credential_importer_zip_file*") do |path|
      FileUtils.rm_rf(path)
    end
  end

  #
  # Callbacks
  #

  # Clean up leftovers from aborted spec runs.
  before(:each) do
    remove_metasploit_credential_importer_zip_files
  end

  # Clean up after completed spec runs.
  after(:each) do
    remove_metasploit_credential_importer_zip_files
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
metasploit-credential-0.13.11 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.10 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.9 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.8 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.7 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.6 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.5 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.3 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.2 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.1 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.0 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.12.0 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.10.2 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.10.1 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.10.1-java spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.10.1.pre.dep.pre.railties spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.10.0.pre.dep.pre.railties spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.9.1 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.9.0 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.9.0-java spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb