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-1.0.1 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.14.8 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-1.0.0 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.14.7 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.14.6 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0c spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0b spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.14.5 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.14.4 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.14.3 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.14.2 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.14.1 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.14.0 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.19 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.18 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.17 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.16 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.15 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb
metasploit-credential-0.13.12 spec/support/shared/contexts/metasploit/credential/importer/zip/file.rb