Skip to content

Commit

Permalink
Make test db in the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
bobtfish committed Jun 27, 2010
1 parent 07fe7fd commit 626feba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lib/App/Kaizendo/Web.pm
Expand Up @@ -37,6 +37,9 @@ __PACKAGE__->config(

# Disable deprecated behavior needed by old applications
disable_component_resolution_regex_fallback => 1,
'Model::Projects' => {
dsn => "dbi:SQLite:dbname=" . __PACKAGE__->path_to('kiokudb.sqlite3'),
}
);

# Start the application
Expand Down
1 change: 0 additions & 1 deletion lib/App/Kaizendo/Web/Model/Projects.pm
Expand Up @@ -6,7 +6,6 @@ use namespace::autoclean;
extends 'Catalyst::Model::KiokuDB';

__PACKAGE__->config(
dsn => "dbi:SQLite:dbname=kiokudb.sqlite3",
manage_scope => 1,
clear_leaks => 1,
model_class => 'App::Kaizendo::Datastore',
Expand Down
2 changes: 1 addition & 1 deletion t/lib/TestDatastore.pm
Expand Up @@ -15,7 +15,7 @@ my $fn;
sub import {
my ($class, $args) = @_;
pop if $args;
$fn = $Bin . '/kiokudb.sqlite3';
$fn = $Bin . '/../kiokudb.sqlite3';
unless ($args->{no_unlink}) {
$to_unlink = $fn;
}
Expand Down

0 comments on commit 626feba

Please sign in to comment.