Sha256: 6ce2389c993d21fdd90b76ca26d516ded9814c6c52c5187b756daf437b65ccde
Contents?: true
Size: 390 Bytes
Versions: 5
Compression:
Stored size: 390 Bytes
Contents
require 'test_helper' require 'net' class ValidationsTest < ActiveSupport::TestCase include Net::Validations test "mac address should be valid" do assert_nothing_raised Net::Validations::Error do validate_mac "aa:bb:cc:dd:ee:ff" end end test "mac should be invalid" do assert_raise Net::Validations::Error do validate_mac "abc123asdas" end end end
Version data entries
5 entries across 5 versions & 1 rubygems