Skip to content

Commit

Permalink
fix rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Jan 21, 2024
1 parent e22b1b3 commit d399682
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/unit/additionals_fontawesome_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def setup
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'
Expand Down
2 changes: 1 addition & 1 deletion test/unit/additionals_info_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/unit/core_ext_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_strip_split_with_custom_sep
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

Expand Down
4 changes: 2 additions & 2 deletions test/unit/i18n_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def teardown
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
Expand Down
2 changes: 1 addition & 1 deletion test/unit/redmine_access_control_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def setup
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
Expand Down
4 changes: 2 additions & 2 deletions test/unit/redmine_plugin_kit_loader_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ def test_do_not_allow_helper_if_controller_patch_exists_as_hash
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
Expand Down

0 comments on commit d399682

Please sign in to comment.