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 AvailableFeaturesTest < BSD::Control::Test
|
2024-03-08 00:27:20 +01:00
|
|
|
def test_available_features_not_empty
|
2024-05-13 03:32:55 +02:00
|
|
|
assert_equal false, available_features.empty?
|
2024-03-08 00:27:20 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def test_available_features_instance_of
|
2024-05-13 03:32:55 +02:00
|
|
|
assert_equal true,
|
|
|
|
available_features.all? { _1.instance_of?(BSD::Control::Feature) }
|
2024-03-08 00:27:20 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def available_features
|
|
|
|
BSD::Control.available_features
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|