Sha256: 3d179f5a8fd181c61fb240a3a66d543abe71195b9f70d394ac3d6be241058b90
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
# frozen_string_literal: true require './test/test_helper' class VirustotalAPIDomainTest < Minitest::Test def setup @domain = 'virustotal.com' @api_key = 'testapikey' end def test_class_exists assert VirustotalAPI::Domain end def test_report_response VCR.use_cassette('domain') do vtdomain_report = VirustotalAPI::Domain.find(@domain, @api_key) # Make sure that the JSON was parsed assert vtdomain_report.exists? assert vtdomain_report.is_a?(VirustotalAPI::Domain) assert vtdomain_report.report.is_a?(Hash) assert vtdomain_report.id.is_a?(String) assert vtdomain_report.report_url.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/domain_test.rb |