Changeset 13203 for trunk/Nebulous-Server/t/13_server_rename_object.t
- Timestamp:
- May 3, 2007, 12:10:14 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/t/13_server_rename_object.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/t/13_server_rename_object.t
r13071 r13203 3 3 # Copryight (C) 2007 Joshua Hoblitt 4 4 # 5 # $Id: 13_server_rename_object.t,v 1. 1 2007-04-28 00:44:58jhoblitt Exp $5 # $Id: 13_server_rename_object.t,v 1.2 2007-05-03 22:10:14 jhoblitt Exp $ 6 6 7 7 use strict; 8 8 use warnings FATAL => qw( all ); 9 9 10 use Test::More tests => 5;10 use Test::More tests => 6; 11 11 12 12 use lib qw( ./t ./lib ); … … 37 37 Test::Nebulous->setup; 38 38 39 # destination key exists 40 eval { 41 $neb->create_object('foo'); 42 $neb->create_object('bar'); 43 44 $neb->rename_object('foo', 'bar'); 45 }; 46 like($@, qr/is not valid object key/, "too few params"); 47 48 Test::Nebulous->setup; 49 39 50 eval { 40 51 $neb->rename_object(); … … 42 53 like($@, qr/2 were expected/, "no params"); 43 54 44 Test::Nebulous-> cleanup;55 Test::Nebulous->setup; 45 56 46 57 eval { 58 $neb->create_object("foo"); 59 47 60 $neb->rename_object("foo"); 48 61 }; 49 62 like($@, qr/2 were expected/, "too few params"); 50 63 51 Test::Nebulous-> cleanup;64 Test::Nebulous->setup; 52 65 53 66 eval { 67 $neb->create_object("foo"); 68 54 69 $neb->rename_object("foo", "bar", "baz"); 55 70 };
Note:
See TracChangeset
for help on using the changeset viewer.
