projects
/
working
/
NCIPServer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
306abaa
)
Adding tests for NCIP::Item
author
Chris Cormack
<chrisc@catalyst.net.nz>
Mon, 30 Sep 2013 00:48:56 +0000
(13:48 +1300)
committer
Chris Cormack
<chrisc@catalyst.net.nz>
Mon, 30 Sep 2013 00:48:56 +0000
(13:48 +1300)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
t/NCIP_Item.t
[new file with mode: 0644]
patch
|
blob
diff --git a/t/NCIP_Item.t
b/t/NCIP_Item.t
new file mode 100644
(file)
index 0000000..
119ce64
--- /dev/null
+++ b/
t/NCIP_Item.t
@@ -0,0
+1,13
@@
+#/usr/bin/perl
+
+use strict;
+use warnings;
+use lib 'lib';
+
+use Test::More tests => 3; # last test to print
+
+use_ok('NCIP::Item');
+
+ok(my $user = NCIP::Item->new({itemid => 1}),'Create a new item object');
+is($user->itemid(), '1', "Test getting itemid");
+