use Test::Exception;
use Catalyst::Helper::Model::DBIC::Schema;
use Storable 'dclone';
-eval "use Catalyst::Helper";
-plan skip_all => 'Catalyst::Helper required for tests' if $@;
+use Test::Requires qw(Catalyst::Helper DBIx::Class::Schema::Loader);
my $helper = Catalyst::Helper->new;
$helper->{base} = $Bin;
is $i->helper->{connect_info}{AutoCommit}, 'q{0}',
'connect_info arg from extra hash as string';
+$i = instance(args => [
+ $static, 'components=TimeStamp', $sqlite, $on_connect_do,
+ $quote_char, $name_sep, 'auto_savepoint=1', 'AutoCommit=0',
+ 'db_schema=myschema',
+]);
+
+is $i->loader_args->{db_schema}, 'myschema',
+ 'loader arg after connect_info';
+
+ok ((not exists $i->helper->{connect_info}{db_schema}),
+ 'loader args removed from connect_info');
+
done_testing;
sub instance {