diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-05-07 05:49:16 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-05-07 05:49:16 -0500 |
commit | 307fc5fcd99776572cd14a14c9fd50287857f13b (patch) | |
tree | e7e9171a95b55104a9bb61bfc2c3250c294d2782 | |
parent | 8e0873bf3430ca5741f2222e7e8b832077353f55 (diff) | |
download | moosex-attribute-shorthand-307fc5fcd99776572cd14a14c9fd50287857f13b.tar.gz moosex-attribute-shorthand-307fc5fcd99776572cd14a14c9fd50287857f13b.zip |
bit more testing
-rw-r--r-- | t/001-basic.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/001-basic.t b/t/001-basic.t index 139e33c..eeaf168 100644 --- a/t/001-basic.t +++ b/t/001-basic.t @@ -65,11 +65,13 @@ is($bar->public, 'PUBLIC', "gets a lazy value"); ok($bar->has_public, "has a value now"); $bar->clear_public; ok(!$bar->has_public, "doesn't have a value again"); +dies_ok { $bar->public('sldkfj') } "other options aren't overwritten"; ok(!$bar->_has_private, "doesn't have a value yet"); is($bar->_private, 'PRIVATE', "gets a lazy value"); ok($bar->_has_private, "has a value now"); $bar->_clear_private; ok(!$bar->_has_private, "doesn't have a value again"); +dies_ok { $bar->_private('sldkfj') } "other options aren't overwritten"; done_testing; |