Sha256: 2fc90edace7430dd8974d4ecc711aeb0497dda8d4fedad2b4c1c58650ab29194
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
# frozen_string_literal: true require './test/test_helper' class VirustotalAPIGroupReportTest < Minitest::Test def setup @group_id = 'GROUP_us' @api_key = 'testapikey' end def test_class_exists assert VirustotalAPI::Group end def test_report_response VCR.use_cassette('group_find') do vtgroup_report = VirustotalAPI::Group.find(@group_id, @api_key) # Make sure that the JSON was parsed assert vtgroup_report.exists? assert vtgroup_report.is_a?(VirustotalAPI::Group) assert vtgroup_report.report.is_a?(Hash) assert vtgroup_report.id.is_a?(String) assert vtgroup_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/group_test.rb |