Index: trunk/Nebulous/t/51_client_create.t
===================================================================
--- trunk/Nebulous/t/51_client_create.t	(revision 5667)
+++ trunk/Nebulous/t/51_client_create.t	(revision 12960)
@@ -3,5 +3,5 @@
 # Copryight (C) 2004-2005  Joshua Hoblitt
 #
-# $Id: 51_client_create.t,v 1.1 2005-12-03 02:52:31 jhoblitt Exp $
+# $Id: 51_client_create.t,v 1.2 2007-04-23 20:42:29 jhoblitt Exp $
 
 use strict;
@@ -10,11 +10,13 @@
 use Apache::Test qw( -withtestmore );
 
-plan tests => 7;
+plan tests => 11;
 
 use lib qw( ./t ./lib );
 
+#use Nebulous::Client trace => 'debug';
 use Nebulous::Client;
-use Nebulous::Util qw( :standard );
 use Test::Nebulous;
+use Test::URI;
+use URI::Split qw( uri_split );
 
 my $hostport = Apache::Test->config->{ 'hostport' };
@@ -28,7 +30,9 @@
     );
 
-    my $filename = $neb->create( "foo" );
+    my $uri = $neb->create("foo");
 
-    ok( -e $filename, "good filename" );
+    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
+    ok(-e $path, "good filename");
+    uri_scheme_ok($uri, 'file');
 }
 
@@ -41,7 +45,9 @@
     );
 
-    my $filename = $neb->create( "foo", 0 );
+    my $uri = $neb->create("foo", 0);
 
-    ok( -e $filename, "good filename" );
+    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
+    ok(-e $path, "good filename");
+    uri_scheme_ok($uri, 'file');
 }
 
@@ -54,7 +60,9 @@
     );
 
-    my $filename = $neb->create( "foo", 0, "node01" );
+    my $uri = $neb->create("foo", 0, "node01");
 
-    ok( -e $filename, "good filename" );
+    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
+    ok(-e $path, "good filename");
+    uri_scheme_ok($uri, 'file');
 }
 
@@ -67,7 +75,9 @@
     );
 
-    my $filename = $neb->create( "foo", 0, "node01", "this is foo" );
+    my $uri = $neb->create("foo", 0, "node01", "this is foo");
 
-    ok( -e $filename, "good filename" );
+    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
+    ok(-e $path, "good filename");
+    uri_scheme_ok($uri, 'file');
 }
 
@@ -79,6 +89,6 @@
     );
 
-    $neb->create( "foo" );
-    is( $neb->create( "foo" ), undef, "object already exists" );
+    $neb->create("foo");
+    is($neb->create("foo"), undef, "object already exists");
 }
 
@@ -92,5 +102,5 @@
     $neb->create();
 };
-like( $@, qr/2 - 4 were expected/, "no params" );
+like($@, qr/2 - 4 were expected/, "no params");
 
 Test::Nebulous->setup;
@@ -101,7 +111,7 @@
     );
 
-    $neb->create( 1, 2, 3, 4, 5 );
+    $neb->create(1, 2, 3, 4, 5);
 };
-like( $@, qr/2 - 4 were expected/, "too many params" );
+like($@, qr/2 - 4 were expected/, "too many params");
 
 Test::Nebulous->cleanup;
