bsdcontrol.rb/test/unprivileged/feature_test.rb

18 lines
421 B
Ruby
Raw Normal View History

2024-05-12 05:59:38 +02:00
# frozen_string_literal: true
2024-03-08 00:27:20 +01:00
require_relative "../setup"
module BSD::Control
2024-05-13 03:32:55 +02:00
class FeatureTest < BSD::Control::Test
def test_pageexec_feature
2024-03-08 00:27:20 +01:00
assert_instance_of BSD::Control::Feature,
BSD::Control.feature(:pageexec)
2024-03-08 00:27:20 +01:00
end
def test_nonexistent_feature
assert_raises(BSD::Control::Error) do
2024-03-08 05:23:16 +01:00
BSD::Control.feature(:non_existent_feature)
2024-03-08 00:27:20 +01:00
end
end
end
end