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