Skip to content

Commit

Permalink
Added tests for Badger::Filesystem VFS hook
Browse files Browse the repository at this point in the history
git-svn-id: svn://badgerpower.com/Badger/trunk/badger@148 f7e19ab9-6750-0410-bcef-57680045ec6a
  • Loading branch information
abw committed Aug 13, 2008
1 parent 6bc4f12 commit 2bc1b67
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions t/filesystem/filesystem.t
Expand Up @@ -15,9 +15,9 @@ use lib qw( ./lib ../lib ../../lib );
use strict;
use warnings;
use File::Spec;
use Badger::Filesystem qw( FS :types :dirs );
use Badger::Filesystem qw( FS VFS :types :dirs );
use Badger::Test
tests => 34,
tests => 36,
debug => 'Badger::Filesystem',
args => \@ARGV;

Expand Down Expand Up @@ -80,6 +80,14 @@ $dir = FS->directory->new('/foo/bar');
ok( $dir, 'created directory using FS class' );


#-----------------------------------------------------------------------
# we should also have a VFS reference defined and the module loaded
#-----------------------------------------------------------------------

is( VFS, 'Badger::Filesystem::Virtual', 'VFS is defined' );
ok( VFS->VERSION, 'VFS version is ' . VFS->VERSION );


#-----------------------------------------------------------------------
# check we can get root directory
#-----------------------------------------------------------------------
Expand Down

0 comments on commit 2bc1b67

Please sign in to comment.