Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #37841 - Fix typo 'Unkown' -> 'Unknown' #10329

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading