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

clearer errors on nil/empty config values #14

Closed
wants to merge 2 commits into from

Conversation

geemus
Copy link
Contributor

@geemus geemus commented Jul 16, 2024

No description provided.

@geemus geemus requested a review from benburkert July 16, 2024 16:07
@geemus
Copy link
Contributor Author

geemus commented Jul 16, 2024

@benburkert I've manually tested this, but we should probably add automated tests too. I wasn't quite sure where/how to fit that in to trigger the plugin start (where the errors originate), could use input or to at least talk through it.

Copy link
Contributor

@benburkert benburkert left a comment

Choose a reason for hiding this comment

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

I've manually tested this, but we should probably add automated tests too.

Since the start method is already doing a lot, which makes it a big pain to unit test, how about breaking out the config loading part into a load_config (or whatever) method and unit test that?

lib/puma/acme/plugin.rb Outdated Show resolved Hide resolved
@geemus
Copy link
Contributor Author

geemus commented Jul 17, 2024

I think the problem was largely elsewhere, namely: anchordotdev/rails-demo#11

@geemus geemus closed this Jul 17, 2024
@geemus geemus deleted the missing-config-errors branch July 17, 2024 14:16
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