Sha256: 4f48c4ab5cb29fb8b7940ada7dea2cf1d565efa212714349b9c33c7f7b5000fc
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
# frozen_string_literal: true require './test/test_helper' class VirustotalAPIUserReportTest < Minitest::Test def setup @api_key = 'testapikey' end def test_class_exists assert VirustotalAPI::User end def test_report_response VCR.use_cassette('user_find') do vtuser_report = VirustotalAPI::User.find(@api_key, @api_key) # Make sure that the JSON was parsed assert vtuser_report.exists? assert vtuser_report.is_a?(VirustotalAPI::User) assert vtuser_report.report.is_a?(Hash) assert vtuser_report.id.is_a?(String) assert vtuser_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/user_test.rb |