fix rubocop offenses

This commit is contained in:
Alexander Meindl 2024-01-21 06:54:44 +01:00
parent e22b1b3436
commit d3996822da
6 changed files with 8 additions and 8 deletions

View File

@ -21,7 +21,7 @@ class AdditionalsFontAwesomeTest < Additionals::TestCase
def test_value_info_should_return_infos
info = AdditionalsFontAwesome.value_info 'invalid'
assert info.is_a? Hash
assert_kind_of Hash, info
assert_empty info
info = AdditionalsFontAwesome.value_info 'fas_car'

View File

@ -6,7 +6,7 @@ class AdditionalsInfoTest < Additionals::TestCase
def test_system_infos
infos = AdditionalsInfo.new.system_infos
assert infos.is_a? Hash
assert_kind_of Hash, infos
assert_operator infos.count, :>=, 3
end

View File

@ -16,7 +16,7 @@ class CoreExtTest < Additionals::TestCase
end
def test_strip_split_with_empty_string
assert ''.strip_split.is_a? Array
assert_kind_of Array, ''.strip_split
assert_empty ''.strip_split
end

View File

@ -15,8 +15,8 @@ class I18nTest < Additionals::TestCase
end
def test_valid_languages
assert valid_languages.is_a?(Array)
assert valid_languages.first.is_a?(Symbol)
assert_kind_of Array, valid_languages
assert_kind_of Symbol, valid_languages.first
end
def test_locales_validness

View File

@ -13,7 +13,7 @@ class RedmineAccessControlTest < Additionals::TestCase
end
def test_available_project_modules_all
assert Redmine::AccessControl.available_project_modules_all.is_a? Array
assert_kind_of Array, Redmine::AccessControl.available_project_modules_all
end
def test_disabled_project_modules

View File

@ -137,13 +137,13 @@ class RedminePluginKitLoaderTest < Additionals::TestCase
def test_load_model_hooks
hooks = RedminePluginKit::Loader.new(plugin_id: @plugin_id).load_model_hooks!
assert hooks.is_a? Module
assert_kind_of Module, hooks
end
def test_load_hooks
hooks = RedminePluginKit::Loader.new(plugin_id: @plugin_id).load_view_hooks!
assert hooks.is_a? Module
assert_kind_of Module, hooks
end
def test_load_macros