Move new model tests someplace they'll actually get run.
Zachary Stevens [Fri, 6 Nov 2009 21:22:33 +0000 (21:22 +0000)]
t/02git_object.t [moved from t/git/object.t with 96% similarity]
t/02git_project.t [moved from t/git/project.t with 94% similarity]
t/02git_repo.t [moved from t/git/repo.t with 90% similarity]
t/02git_util.t [moved from t/git/util.t with 89% similarity]

similarity index 96%
rename from t/git/object.t
rename to t/02git_object.t
index 414dfe8..ef31017 100644 (file)
@@ -9,7 +9,7 @@ use Path::Class;
 use Gitalist::Git::Project;
 my $project = Gitalist::Git::Project->new(
     name => 'repo1',
-    path => dir("$Bin/../lib/repositories/repo1"),
+    path => dir("$Bin/lib/repositories/repo1"),
 );
 
 BEGIN { use_ok 'Gitalist::Git::Object' }
similarity index 94%
rename from t/git/project.t
rename to t/02git_project.t
index 69fbd89..f7d6487 100644 (file)
@@ -8,7 +8,7 @@ use Data::Dumper;
 BEGIN { use_ok 'Gitalist::Git::Project' }
 
 use Path::Class;
-my $gitdir = dir("$Bin/../lib/repositories/repo1");
+my $gitdir = dir("$Bin/lib/repositories/repo1");
 
 my $proj = Gitalist::Git::Project->new(
     path => $gitdir,
similarity index 90%
rename from t/git/repo.t
rename to t/02git_repo.t
index a46cf8e..882bc2c 100644 (file)
@@ -7,7 +7,7 @@ use Data::Dumper;
 
 BEGIN { use_ok 'Gitalist::Git::Repo' }
 
-my $repo_dir = "$Bin/../lib/repositories";
+my $repo_dir = "$Bin/lib/repositories";
 my $repo = Gitalist::Git::Repo->new( repo_dir => $repo_dir );
 isa_ok($repo, 'Gitalist::Git::Repo');
 
similarity index 89%
rename from t/git/util.t
rename to t/02git_util.t
index dcc55a1..730754a 100644 (file)
@@ -8,7 +8,7 @@ use Data::Dumper;
 BEGIN { use_ok 'Gitalist::Git::Util' }
 
 use Path::Class;
-my $gitdir = dir("$Bin/../lib/repositories/repo1");
+my $gitdir = dir("$Bin/lib/repositories/repo1");
 
 my $proj = Gitalist::Git::Util->new(
     gitdir => $gitdir,