about summary refs log tree commit diff
path: root/t/003_hook_route.t
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-05-22 22:17:29 -0700
committerJonathan "Duke" Leto <jonathan@leto.net>2011-05-22 22:17:29 -0700
commit4b36d82c173ce6cb24f52a9e30dc08354c0af2e3 (patch)
tree98f888830595abd1f9e2a411d4c151ec35beb0af /t/003_hook_route.t
parentTry adding a git repo for testing again (diff)
downloadjitterbug-4b36d82c173ce6cb24f52a9e30dc08354c0af2e3.tar.gz
Add a test file for git cloning
Diffstat (limited to '')
-rw-r--r--t/003_hook_route.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/003_hook_route.t b/t/003_hook_route.t
index 0361b15..6e86dfd 100644
--- a/t/003_hook_route.t
+++ b/t/003_hook_route.t
@@ -44,7 +44,7 @@ my $response;
 }
 
 {
-    my $rs = $schema->resultset('Project')->find( { name => 'Dancer' } );
+    my $rs = $schema->resultset('Project')->find( { name => 'testing' } );
     ok !defined $rs, 'no project dancer yet';
 
     $response = dancer_response(
@@ -58,11 +58,11 @@ my $response;
 
     is $response->{status}, 200, 'status OK with payload';
     is_deeply JSON::decode_json( $response->{content} ),
-      { updated => 'Dancer' }, 'response OK with payload';
+      { updated => 'testing' }, 'response OK with payload';
 
-    $rs = $schema->resultset('Project')->find( { name => 'Dancer' } );
+    $rs = $schema->resultset('Project')->find( { name => 'testing' } );
     ok $rs, 'project exists in DB';
-    is $rs->name, 'Dancer', 'project\'s name is good';
+    is $rs->name, 'testing', 'project\'s name is good';
 
     is $schema->resultset('Task')->search()->count(), 1, 'one task created';
 }
@@ -90,7 +90,7 @@ my $response;
     $schema->resultset('Task')->search()->delete();
 
     # testing with invalid global branch
-    setting jitterbug => { branches => { Dancer => ['foo'], }, };
+    setting jitterbug => { branches => { testing => ['foo'], }, };
     $content->{ref} = 'refs/heads/foo';
     $response = dancer_response(
         POST => '/hook/',