-# Before `make install' is performed this script should be runnable with
-# `make test'. After `make install' it should work as `perl 1.t'
+# vim:ft=perl
+use Test::More 'no_plan';
-#########################
+package Fake::Loader;
-# change 'tests => 1' to 'tests => last_test_to_print';
+package Fake::MVC;
+use base 'Apache::MVC';
-use Test;
-BEGIN { plan tests => 1 };
-use Apache::MVC;
-ok(1); # If we made it this far, we're ok.
+sub set_database {
+ my $self = shift;
+ $self->config->{loader} = bless {}, Fake::Loader;
+}
-#########################
-
-# Insert your test code below, the Test::More module is use()ed here so read
-# its man page ( perldoc Test::More ) for help writing this test script.
+sub get_request {}
+sub parse_location {
+ my $self = shift;
+ my @pi = @Fake::MVC::url;
+ shift @pi while @pi and !$pi[0];
+ $self->{table} = shift @pi;
+ $self->{action} = shift @pi;
+ $self->{args} = \@pi;
+}