From a34d983257fc3db52d7f0172a0fcde9370f30f56 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Wed, 18 Sep 2024 19:54:37 +0200 Subject: [PATCH] Fixes #37841 - Fix typo 'Unkown' -> 'Unknown' Fixes: 989e0aad01df80dea8fd4734a78e794770b39f2d ("Fixes #32822 - Job templates and resource picker") --- app/services/foreman/renderer/errors.rb | 2 +- test/unit/foreman/renderer/renderers_shared_tests.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/foreman/renderer/errors.rb b/app/services/foreman/renderer/errors.rb index a28ff37028c..6857b85288e 100644 --- a/app/services/foreman/renderer/errors.rb +++ b/app/services/foreman/renderer/errors.rb @@ -60,7 +60,7 @@ class UnsupportedOS < RenderingError end class UnknownResource < RenderingError - MESSAGE = N_("Unkown '%{klass}' resource class").freeze + MESSAGE = N_("Unknown '%{klass}' resource class").freeze end end end diff --git a/test/unit/foreman/renderer/renderers_shared_tests.rb b/test/unit/foreman/renderer/renderers_shared_tests.rb index 5bbce96fd54..7d6fe45fa35 100644 --- a/test/unit/foreman/renderer/renderers_shared_tests.rb +++ b/test/unit/foreman/renderer/renderers_shared_tests.rb @@ -435,14 +435,14 @@ module RenderersSharedTests e = assert_raises Foreman::Renderer::Errors::UnknownResource do renderer.render(source, preview_scope) end - assert_includes e.message, "Unkown 'NotExistingResource' resource class" + assert_includes e.message, "Unknown 'NotExistingResource' resource class" end test "render" do e = assert_raises Foreman::Renderer::Errors::UnknownResource do renderer.render(source, real_scope) end - assert_includes e.message, "Unkown 'NotExistingResource' resource class" + assert_includes e.message, "Unknown 'NotExistingResource' resource class" end end