summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Bread/Board.pm6
-rw-r--r--t/001_constructor_injection.t5
-rw-r--r--t/003_block_injection.t5
-rw-r--r--t/004_block_injection_w_out_class.t5
-rw-r--r--t/010_container.t5
5 files changed, 19 insertions, 7 deletions
diff --git a/lib/Bread/Board.pm b/lib/Bread/Board.pm
index 51f5934..1713678 100644
--- a/lib/Bread/Board.pm
+++ b/lib/Bread/Board.pm
@@ -24,7 +24,7 @@ role Bread::Board::Traversable {
return $root;
}
- method get_enclosing_container {*}
+ method get_enclosing_container {...}
method _fetch (Str $path) {
return self if $path eq '';
@@ -38,7 +38,7 @@ role Bread::Board::Traversable {
return self._fetch_single(@parts[0])._fetch($rest);
}
- method _fetch_single (Str $path) {*}
+ method _fetch_single (Str $path) {...}
}
role Bread::Board::Service does Bread::Board::Traversable {
@@ -63,7 +63,7 @@ role Bread::Board::Service does Bread::Board::Traversable {
return;
}
- method get {*};
+ method get {...}
method get_dependency ($name) {
return $.dependencies.{$name};
diff --git a/t/001_constructor_injection.t b/t/001_constructor_injection.t
index b6e03bc..471b731 100644
--- a/t/001_constructor_injection.t
+++ b/t/001_constructor_injection.t
@@ -3,7 +3,10 @@ use Test;
use Bread::Board;
-sub does_ok(Mu $var, Mu $type, $msg = ("The object does '" ~ $type.perl ~ "'")) {
+# TODO: doing anything at all with the type object for a role with required
+# methods is broken
+#sub does_ok(Mu $var, Mu $type, $msg = ("The object does '" ~ $type.perl ~ "'")) {
+sub does_ok(Mu $var, Mu $type, $msg = ("The object does [some role]")) {
ok($var.does($type), $msg);
}
diff --git a/t/003_block_injection.t b/t/003_block_injection.t
index 9f45380..a235fc7 100644
--- a/t/003_block_injection.t
+++ b/t/003_block_injection.t
@@ -3,7 +3,10 @@ use Test;
use Bread::Board;
-sub does_ok(Mu $var, Mu $type, $msg = ("The object does '" ~ $type.perl ~ "'")) {
+# TODO: doing anything at all with the type object for a role with required
+# methods is broken
+#sub does_ok(Mu $var, Mu $type, $msg = ("The object does '" ~ $type.perl ~ "'")) {
+sub does_ok(Mu $var, Mu $type, $msg = ("The object does [some role]")) {
ok($var.does($type), $msg);
}
diff --git a/t/004_block_injection_w_out_class.t b/t/004_block_injection_w_out_class.t
index 622335d..3313ca7 100644
--- a/t/004_block_injection_w_out_class.t
+++ b/t/004_block_injection_w_out_class.t
@@ -3,7 +3,10 @@ use Test;
use Bread::Board;
-sub does_ok(Mu $var, Mu $type, $msg = ("The object does '" ~ $type.perl ~ "'")) {
+# TODO: doing anything at all with the type object for a role with required
+# methods is broken
+#sub does_ok(Mu $var, Mu $type, $msg = ("The object does '" ~ $type.perl ~ "'")) {
+sub does_ok(Mu $var, Mu $type, $msg = ("The object does [some role]")) {
ok($var.does($type), $msg);
}
diff --git a/t/010_container.t b/t/010_container.t
index 6ccc861..a2105d8 100644
--- a/t/010_container.t
+++ b/t/010_container.t
@@ -3,7 +3,10 @@ use Test;
use Bread::Board;
-sub does_ok(Mu $var, Mu $type, $msg = ("The object does '" ~ $type.perl ~ "'")) {
+# TODO: doing anything at all with the type object for a role with required
+# methods is broken
+#sub does_ok(Mu $var, Mu $type, $msg = ("The object does '" ~ $type.perl ~ "'")) {
+sub does_ok(Mu $var, Mu $type, $msg = ("The object does [some role]")) {
ok($var.does($type), $msg);
}