summaryrefslogtreecommitdiff
path: root/t/add_property_hash.t
diff options
context:
space:
mode:
Diffstat (limited to 't/add_property_hash.t')
-rw-r--r--t/add_property_hash.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/add_property_hash.t b/t/add_property_hash.t
new file mode 100644
index 0000000..afd71f8
--- /dev/null
+++ b/t/add_property_hash.t
@@ -0,0 +1,16 @@
+#!/usr/bin/perl -w
+
+use strict;
+use lib 't/lib';
+use MBTest tests => 1;
+
+blib_load 'Module::Build';
+
+ADDPROP: {
+ package My::Build::Prop;
+ use base 'Module::Build';
+ __PACKAGE__->add_property( 'hash_property' => {});
+}
+
+ok grep { $_ eq 'install_path' } My::Build::Prop->hash_properties, "has install_path even after adding another hash property";
+