Adding tests for NCIP::Item
authorChris Cormack <chrisc@catalyst.net.nz>
Mon, 30 Sep 2013 00:48:56 +0000 (13:48 +1300)
committerChris 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]

diff --git a/t/NCIP_Item.t b/t/NCIP_Item.t
new file mode 100644 (file)
index 0000000..119ce64
--- /dev/null
@@ -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");
+