about summary refs log tree commit diff
path: root/t/007_task.t
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-05-02 22:41:52 -0700
committerJonathan "Duke" Leto <jonathan@leto.net>2011-05-02 22:41:52 -0700
commit63b741cc97ab20e086e3429fb517bf6662b87bd1 (patch)
tree1b14691be4c597dcc7e5531f76a9120d9ef420de /t/007_task.t
parentShow 'running now' if the task has not yet completed (diff)
downloadjitterbug-63b741cc97ab20e086e3429fb517bf6662b87bd1.tar.gz
Add a test for requesting a nonexistent task
Diffstat (limited to 't/007_task.t')
-rw-r--r--t/007_task.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/007_task.t b/t/007_task.t
new file mode 100644
index 0000000..49384fa
--- /dev/null
+++ b/t/007_task.t
@@ -0,0 +1,13 @@
+use Test::More tests => 1;
+use strict;
+use warnings;
+
+use lib 't/lib';
+
+use jitterbug;
+use jitterbug::Test;
+use Dancer::Test;
+
+jitterbug::Test->init();
+
+response_status_is    [ GET => '/task/999' ], 404, "nonexistent task is a 404";