Sha256: 82b4c4765d37b91558f3b9111122fa7576a138ed6e04cd9c5f37933fd22e9430

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

require './test/test_helper'

class VirustotalAPIAnalysisTest < Minitest::Test
  def setup
    @url     = 'http://www.google.com'
    @api_key = 'theapikey'
  end

  def test_todo
    VCR.use_cassette('url_find') do
      vtreport = VirustotalAPI::URL.find(@url, @api_key)

      @id = vtreport.id
      assert @id.is_a?(String)
    end

    VCR.use_cassette('analysis') do
      analysis = VirustotalAPI::Analysis.find(@id, @api_key)

      assert analysis.exists?
      assert analysis.id.is_a?(String)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
virustotal_api_compat-0.1.7 test/analysis_test.rb