Fixed test bug and make the plain diffs plainer.
Dan Brook [Wed, 3 Mar 2010 10:16:26 +0000 (10:16 +0000)]
lib/Gitalist/URIStructure/Ref.pm
t/02git_object.t

index 659ccc0..9516b7d 100644 (file)
@@ -33,7 +33,10 @@ sub diff_fancy : Chained('diff') PathPart('') Args() {
       if @rest;
 }
 
-sub diff_plain : Chained('diff') PathPart('plain') Args(0) {}
+sub diff_plain : Chained('diff') PathPart('plain') Args(0) {
+    my($self, $c) = @_;
+    $c->stash->{no_wrapper} = 1;
+}
 
 sub commit : Chained('find') PathPart('commit') Args(0) {}
 
index 3cdc2cc..bb49cf7 100644 (file)
@@ -59,7 +59,7 @@ my $commit_obj = Gitalist::Git::Object::Commit->new(
 isa_ok($commit_obj, 'Gitalist::Git::Object::Commit', "commit object");
 my ($tree, $patch) = $commit_obj->diff(
     parent => undef,
-    file => undef,
+    filename => undef,
     patch => 1,
 );
 $patch = $patch->[0];