summaryrefslogtreecommitdiffstats
path: root/t/32-defaults.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-06-14 16:04:36 -0500
committerJesse Luehrs <doy@tozt.net>2011-06-14 16:04:36 -0500
commit36ea288cc78dedaadd1d3b38331489646be26626 (patch)
tree4e2c123e9a1b0d8fe50036b03ab17af7850988ba /t/32-defaults.t
parent65028d365fcfa1f28b0f0e85e8443b3b1c9dad34 (diff)
downloadbread-board-declare-36ea288cc78dedaadd1d3b38331489646be26626.tar.gz
bread-board-declare-36ea288cc78dedaadd1d3b38331489646be26626.zip
remove test numbers
Diffstat (limited to 't/32-defaults.t')
-rw-r--r--t/32-defaults.t86
1 files changed, 0 insertions, 86 deletions
diff --git a/t/32-defaults.t b/t/32-defaults.t
deleted file mode 100644
index 7350d52..0000000
--- a/t/32-defaults.t
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/usr/bin/env perl
-use strict;
-use warnings;
-use Test::More;
-use Test::Fatal;
-
-{
- package Foo;
- use Moose;
- use Bread::Board::Declare;
-
- ::like(::exception {
- has foo => (
- is => 'ro',
- isa => 'Str',
- default => 'OOF',
- value => 'FOO',
- );
- }, qr/default is not valid when Bread::Board service options are set/,
- "can't set a default when creating a service");
-
- ::like(::exception {
- has bar => (
- is => 'ro',
- isa => 'Str',
- default => sub { 'OOF' },
- value => 'FOO',
- );
- }, qr/default is not valid when Bread::Board service options are set/,
- "can't set a default when creating a service");
-
- ::like(::exception {
- has bar2 => (
- is => 'ro',
- isa => 'Str',
- builder => '_build_bar2',
- value => 'FOO',
- );
- }, qr/builder is not valid when Bread::Board service options are set/,
- "can't set a builder when creating a service");
-
- ::like(::exception {
- has baz => (
- is => 'ro',
- isa => 'Str',
- lazy => 1,
- default => 'OOF',
- value => 'FOO',
- );
- }, qr/default is not valid when Bread::Board service options are set/,
- "can't set a default when creating a service");
-
- ::like(::exception {
- has quux => (
- is => 'ro',
- isa => 'Str',
- lazy => 1,
- default => sub { 'OOF' },
- value => 'FOO',
- );
- }, qr/default is not valid when Bread::Board service options are set/,
- "can't set a default when creating a service");
-
- ::like(::exception {
- has quux2 => (
- is => 'ro',
- isa => 'Str',
- lazy => 1,
- builder => '_build_quux2',
- value => 'FOO',
- );
- }, qr/builder is not valid when Bread::Board service options are set/,
- "can't set a builder when creating a service");
-
- ::like(::exception {
- has quux3 => (
- is => 'ro',
- isa => 'Str',
- lazy_build => 1,
- value => 'FOO',
- );
- }, qr/builder is not valid when Bread::Board service options are set/,
- "can't set lazy_build when creating a service");
-}
-
-done_testing;