Very interesting approach to addressing the issue, thank you for sharing!

On Tue, Apr 21, 2020 at 10:38 AM Илья <elcaml...@gmail.com> wrote:

> I do it that way (pretty ugly, i know), but agree, it's annoying and I'll
> be much happier if Mojolicious::Plugin::Config will do deep merge
>
> my $t = Test::Mojo->new('App');
>
> my $config = $t->app->config;
>
> ... do something with config;
>
> undef $t;
>
> $t = Test::Mojo->new('App', $config);
>
> ... do tests
> 21.04.2020 17:37, Stefan Adams пишет:
>
> Test::Mojo allows setting the config at initialization, but the way
> Mojolicious::Plugin::Config works, that doesn't allow the programmed
> defaults to get picked up, which means that it is necessary to define a
> complete configuration during testing.  Is that more desirable than
> allowing the defaults to get picked up during testing?
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mojolicious+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFQzm63SW_9a0xDH_AkhQXaVBB3T-WRa77PaUgac2Q-6Pg%40mail.gmail.com
> <https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFQzm63SW_9a0xDH_AkhQXaVBB3T-WRa77PaUgac2Q-6Pg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mojolicious+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mojolicious/3ba96f41-4a6e-c55c-907c-75bf0fcafdc6%40gmail.com
> <https://groups.google.com/d/msgid/mojolicious/3ba96f41-4a6e-c55c-907c-75bf0fcafdc6%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFRUzacNqx4V%2BNRkO-KT_GUQpFgHXrfXm%2BD-LX4WyKiayg%40mail.gmail.com.

Reply via email to