Skip to content

Commit

Permalink
cruft pre-Biome
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Fields committed Nov 20, 2011
1 parent b2ab252 commit 8588113
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 112 deletions.
17 changes: 8 additions & 9 deletions t/Biome.t
Expand Up @@ -8,7 +8,7 @@ BEGIN {
use Test::Exception;
}

our $VERBOSE = $ENV{BIOMOOSE_DEBUG} || 0;
our $VERBOSE = $ENV{BIOME_DEBUG} || 0;

###############################

Expand All @@ -28,28 +28,27 @@ package main;
for my $att (qw(test1 -test1)) {
# note use of named parameter passing; needs to change to use '-'
my $i = MyClass1->new($att => 'Foo');

for my $attribute (qw(verbose strict test1)) {
has_attribute_ok($i, $attribute);
}

is($i->test1, 'Foo', "Named parameter [$att]");

meta_ok('Biome::Root', 'Biome::Root has a meta');
meta_ok($i, 'Instances of Biome::Root have a meta class');

isa_ok($i->meta, 'Biome::Meta::Class');
# We should hook in Bio::Root::Exceptions here
throws_ok {$i->strict('Foo')} qr/Validation failed for 'Int'/,
'verbose() requires an Int value';
throws_ok {$i->verbose('Foo')} qr/Validation failed for 'Bool'/,
'debug() requires a Bool value (0 or 1)';

is($i->strict, 0, 'default strictness');
is($i->verbose, $VERBOSE, 'default verbosity');

# explicit warn/throw

throws_ok {$i->throw('Foo!')} 'Biome::Meta::Error', 'throw()';
}

103 changes: 0 additions & 103 deletions t/Location/Split.t

This file was deleted.

0 comments on commit 8588113

Please sign in to comment.