test/test_sid.rb in win32-security-0.4.0 vs test/test_sid.rb in win32-security-0.4.1
- old
+ new
@@ -18,11 +18,11 @@
def setup
@sid = Security::SID.new(@@name)
end
test "version is set to expected value" do
- assert_equal('0.2.3', Security::SID::VERSION)
+ assert_equal('0.2.4', Security::SID::VERSION)
end
test "sid method basic functionality" do
assert_respond_to(@sid, :sid)
assert_kind_of(String, @sid.sid)
@@ -122,10 +122,10 @@
test "constructor accepts a maximum of two arguments" do
assert_raise(ArgumentError){ Security::SID.new(@@name, @@host, @@host) }
end
test "constructor raises an error if an invalid account is passed" do
- assert_raise(SystemCallError){ Security::SID.new('bogus') }
+ assert_raise(SystemCallError, Errno::ESRCH){ Security::SID.new('bogus') }
end
test "well known sid constants are defined" do
assert_equal('S-1-0', Security::SID::Null)
assert_equal('S-1-0-0', Security::SID::Nobody)