Changed public interface tests to use #assert_respond_to.

This will improve the accuracy of potential error messages.
This commit is contained in:
soh_cah_toa
2013-07-15 18:25:33 -04:00
parent 5769615cd5
commit 8d95e6f522

View File

@@ -47,11 +47,11 @@ class TC_Dns < Test::Unit::TestCase
def test_3_interface
@@dns = BeEF::Extension::Dns::Server.instance
assert(@@dns.respond_to?('run_server'))
assert(@@dns.respond_to?('add_rule'))
assert(@@dns.respond_to?('remove_rule'))
assert(@@dns.respond_to?('get_ruleset'))
assert(@@dns.respond_to?('get_rule'))
assert_respond_to(@@dns, :run_server)
assert_respond_to(@@dns, :add_rule)
assert_respond_to(@@dns, :remove_rule)
assert_respond_to(@@dns, :get_ruleset)
assert_respond_to(@@dns, :get_rule)
end
# Starts DNS server (does not test anything)