Sha256: 385f4e235975df69b5d9e10cb01dde9c4ea5d2979ba012fbc008418666c8ab8b
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
require 'minitest/autorun' require './lib/yawast' require './test/base' class TestScannerCms < Minitest::Test include TestBase def test_generator_tag_valid body = File.read('test/data/cms_wordpress_body.txt') override_stdout Yawast::Scanner::Cms.get_generator body assert stdout_value.include?('WordPress'), "Unexpected generator tag: #{stdout_value}" restore_stdout end def test_generator_tag_invalid body = File.read('test/data/cms_none_body.txt') override_stdout Yawast::Scanner::Cms.get_generator body assert stdout_value == '', "Unexpected generator tag: #{stdout_value}" restore_stdout end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yawast-0.2.0.beta2 | test/test_scan_cms.rb |
yawast-0.2.0.beta1 | test/test_scan_cms.rb |