From: Mike Whitaker Date: Thu, 23 Oct 2008 11:03:53 +0000 (+0000) Subject: ...and remember to test for not existing as well. X-Git-Tag: 0.16~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-AttributeHelpers.git;a=commitdiff_plain;h=57f29c327d2c5bac9123d7ceb6cffcfcfea6e509 ...and remember to test for not existing as well. --- diff --git a/t/003_basic_hash.t b/t/003_basic_hash.t index 1f48afc..7b1b779 100644 --- a/t/003_basic_hash.t +++ b/t/003_basic_hash.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 39; +use Test::More tests => 40; use Test::Exception; BEGIN { @@ -54,6 +54,7 @@ ok(!$stuff->has_options, '... we have no options'); is($stuff->num_options, 0, '... we have no options'); is_deeply($stuff->options, {}, '... no options yet'); +ok(!$stuff->has_option('foo'), '... we have no foo option'); lives_ok { $stuff->set_option(foo => 'bar');