From d03896fac5929bbb5f2c2e27a74740d6f3da07fd Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Sun, 21 Jan 2024 06:58:46 +0100 Subject: [PATCH] fix rubocop offenses --- test/unit/i18n_test.rb | 4 ++-- test/unit/project_test.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/i18n_test.rb b/test/unit/i18n_test.rb index ef75773..96b0497 100644 --- a/test/unit/i18n_test.rb +++ b/test/unit/i18n_test.rb @@ -14,8 +14,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 diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index f78e8a2..ddd4a34 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -42,7 +42,7 @@ def test_issue_view_columns_without_columns project = projects :projects_003 assert_not project.issue_view_columns? - assert project.issue_view_columns.is_a? Array + assert_kind_of Array, project.issue_view_columns assert_empty project.issue_view_columns end end