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

[review] Use Rails.application.config_for #27

Merged
merged 4 commits into from
Nov 7, 2023
Merged

[review] Use Rails.application.config_for #27

merged 4 commits into from
Nov 7, 2023

Conversation

aki77
Copy link
Contributor

@aki77 aki77 commented Nov 6, 2023

No description provided.

@@ -70,7 +70,7 @@ def input_overrides_json
end

def convert_container_type
CONTAINER_TYPES[@container_type]
@container_type ? CONTAINER_TYPES.fetch(@container_type) : nil
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

おかしな値指定した場合は、黙ってnilになるのではなくエラーでコケてほしい。

@@ -48,26 +48,24 @@
end
end

describe '#parse' do
describe '.convert' do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rails.application.config_forのパース処理自体をテストするのは無駄なので、パース結果からの変換のみをテストするように見直し。

@interu interu merged commit 8ab6023 into main Nov 7, 2023
3 checks passed
@interu interu deleted the fix-yaml-parse branch November 7, 2023 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants