Skip to content

Commit

Permalink
Fixes #37841 - Fix typo 'Unkown' -> 'Unknown'
Browse files Browse the repository at this point in the history
Fixes: 989e0aa ("Fixes #32822 - Job templates and resource picker")
  • Loading branch information
ekohl authored and stejskalleos committed Sep 24, 2024
1 parent 2d4f34a commit a34d983
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/services/foreman/renderer/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/unit/foreman/renderer/renderers_shared_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a34d983

Please sign in to comment.