[Bps-public-commit] r14082 - in sd/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Mon Jul 14 14:06:01 EDT 2008
Author: sartak
Date: Mon Jul 14 14:06:01 2008
New Revision: 14082
Modified:
sd/trunk/ (props changed)
sd/trunk/t/sd-attachments.t
sd/trunk/t/sd-comments.t
Log:
r64225 at onn: sartak | 2008-07-14 14:04:53 -0400
Some test fixes
Modified: sd/trunk/t/sd-attachments.t
==============================================================================
--- sd/trunk/t/sd-attachments.t (original)
+++ sd/trunk/t/sd-attachments.t Mon Jul 14 14:06:01 2008
@@ -21,7 +21,7 @@
my $attachment_id;
my $attachment_uuid;
-run_output_matches('sd', [qw/ticket attachment create --uuid/, $yatta_uuid, '--content', 'stub', '--name', "paper_order.doc"], [qr/Created attachment (\d+)(?{ $attachment_id = $1}) \((.*)(?{ $attachment_uuid = $2})\)/], [], "Added a attachment");
+run_output_matches('sd', [qw/ticket attachment create --uuid/, $yatta_uuid, '--content', 'stub', '--', '--name', "paper_order.doc"], [qr/Created attachment (\d+)(?{ $attachment_id = $1}) \((.*)(?{ $attachment_uuid = $2})\)/], [], "Added a attachment");
ok($attachment_id, " $attachment_id = $attachment_uuid");
run_output_matches('sd', [qw/ticket attachment list --uuid/, $yatta_uuid], [qr/\d+ paper_order.doc text\/plain/,], [], "Found the attachment");
@@ -42,6 +42,7 @@
run_output_matches(
'sd',
[ qw/ticket attachment update --uuid/, $attachment_uuid,
+ '--',
qw/--name/, "plague_recipe.doc"
],
[qr/attachment $attachment_uuid updated/],
Modified: sd/trunk/t/sd-comments.t
==============================================================================
--- sd/trunk/t/sd-comments.t (original)
+++ sd/trunk/t/sd-comments.t Mon Jul 14 14:06:01 2008
@@ -44,6 +44,7 @@
run_output_matches(
'sd',
[ qw/ticket comment update --uuid/, $comment_uuid,
+ '--',
qw/--content/, "I hate you"
],
[qr/comment $comment_uuid updated/],
More information about the Bps-public-commit
mailing list