bsdcontrol.rb/test/unprivileged/feature_test.rb
2024-05-12 22:44:29 -03:00

17 lines
421 B
Ruby

# frozen_string_literal: true
require_relative "../setup"
module BSD::Control
class FeatureTest < BSD::Control::Test
def test_pageexec_feature
assert_instance_of BSD::Control::Feature,
BSD::Control.feature(:pageexec)
end
def test_nonexistent_feature
assert_raises(BSD::Control::Error) do
BSD::Control.feature(:non_existent_feature)
end
end
end
end