Permalink
Browse files

[t/spec/astaire] removed a number of tests

...that didn't test anything in the Astaire module, only still-aliveness.
But the next test that actually tests something already does that.
  • Loading branch information...
1 parent 521a716 commit 572cc57b68e5eb98026d6819e0e5b9d8fe6703de @masak committed Dec 7, 2009
Showing with 1 addition and 7 deletions.
  1. +1 −7 t/spec/astaire/01-basics.t
@@ -2,31 +2,25 @@
use v6;
use Test;
-plan 18;
+plan 12;
#Basic test
use Astaire;
-ok(1, 'used Astaire without errors');
get '/hi' => {
"Hello World!"
};
-ok(1, 'set up get action without errors');
post '/test' => {
2+2
};
-ok(1, 'set up post action without errors');
my $astaire_app = application();
-ok(1, 'set up application without errors');
{
my Web::Request $req .= new({ PATH_INFO => "/hi", REQUEST_METHOD => "GET" });
- ok(1, 'set up request without errors');
my Web::Response $response = $astaire_app.call( $req );
- ok(1, 'got response without errors');
ok( $response.body eq "Hello World!" , 'body of response to get was as excpected');
ok( $response.status == 200 , 'status of response to get was as excpected');

0 comments on commit 572cc57

Please sign in to comment.