summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/OX/View/TT.pm2
-rw-r--r--t/array_parameter.t5
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/OX/View/TT.pm b/lib/OX/View/TT.pm
index 3a7d4c1..90b60b9 100644
--- a/lib/OX/View/TT.pm
+++ b/lib/OX/View/TT.pm
@@ -21,8 +21,6 @@ use Template;
},
);
-
-
has view => (
is => 'ro',
isa => 'OX::View::TT',
diff --git a/t/array_parameter.t b/t/array_parameter.t
index 22533c2..1f78154 100644
--- a/t/array_parameter.t
+++ b/t/array_parameter.t
@@ -43,9 +43,10 @@ use Path::Class ();
);
has 'template_params' => (
- block => sub {
+ is => 'ro',
+ block => sub {
my $s = shift;
- return {
+ return {
some_scalar => 'scalar',
some_array => ['one', 'two'],
other_array => ['four', 'five'],