[Bps-public-commit] rt-extension-onetimeto branch, master, updated. 7cd448c613540f0e096132cb22d6936590469f8d
Thomas Sibley
trs at bestpractical.com
Thu Jul 28 15:15:44 EDT 2011
The branch, master has been updated
via 7cd448c613540f0e096132cb22d6936590469f8d (commit)
from 658e937d9e62d87e4adab5f673ba26896f3b6ca6 (commit)
Summary of changes:
t/empty-update.t | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
create mode 100644 t/empty-update.t
- Log -----------------------------------------------------------------
commit 7cd448c613540f0e096132cb22d6936590469f8d
Author: Thomas Sibley <trs at bestpractical.com>
Date: Thu Jul 28 15:15:29 2011 -0400
Test that our extension doesn't suddenly let you create empty notes
diff --git a/t/empty-update.t b/t/empty-update.t
new file mode 100644
index 0000000..712e61d
--- /dev/null
+++ b/t/empty-update.t
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+
+use RT::Test tests => 7, testing => 'RT::Extension::OneTimeTo';
+
+my $ticket = RT::Ticket->new(RT->SystemUser);
+my ($ok, $txn, $msg) = $ticket->Create( Subject => 'testing', Queue => 'General' );
+
+ok $ok, $msg;
+ok $txn;
+ok $ticket->id, "created ticket";
+
+($ok, $msg, $txn) = $ticket->_RecordNote( Content => '' );
+ok !$ok, "can't record note without content or mimeobj ($msg)";
+
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list