← Back to team overview

mvhub-dev team mailing list archive

[Merge] lp:~omacneil/mvhub/cleanup_dot_t_templates into lp:mvhub

 

Dan MacNeil has proposed merging lp:~omacneil/mvhub/cleanup_dot_t_templates into lp:mvhub.

Requested reviews:
  MVHub devs with commit rights (mvhub-commit)


see commit log
-- 
https://code.launchpad.net/~omacneil/mvhub/cleanup_dot_t_templates/+merge/27097
Your team MVHub Developers is subscribed to branch lp:mvhub.
=== modified file 'app-mvhub/project-tools/templates/template.t'
--- app-mvhub/project-tools/templates/template.t	2009-12-23 16:41:53 +0000
+++ app-mvhub/project-tools/templates/template.t	2010-06-09 00:09:24 +0000
@@ -10,12 +10,6 @@
 use Test::More tests => 500;
 use CGI;
 
-BEGIN {
-    use FindBin qw($Bin);
-    chdir $Bin;
-    use lib qw( ./t/lib ./lib ../lib/ ../../lib/ );
-}
-
 # return ->run() output instead of sending to stdout
 $ENV{CGI_APP_RETURN_ONLY} = 1;
 
@@ -36,6 +30,6 @@
 $test_name = 'name of the test';
 ###
 # EDIT
-$object = ModuleToTest->new();
+my $object = ModuleToTest->new();
 isa_ok( $object, 'ModuleToTest', $test_name );
 

=== modified file 'app-mvhub/project-tools/templates/template_subs.t'
--- app-mvhub/project-tools/templates/template_subs.t	2009-12-23 16:41:53 +0000
+++ app-mvhub/project-tools/templates/template_subs.t	2010-06-09 00:09:24 +0000
@@ -10,16 +10,11 @@
 use Test::More tests => 99 + 1;    # +1 for NoWarnings
 use Test::NoWarnings;
 
-BEGIN {
-    use FindBin qw($Bin);
-    chdir $Bin;
-    use lib qw( ./t/lib ./lib ../lib/ ../../lib/ );
-}
-
 my $test_message;
-my $result = 1;
+my $got = 1;
+my $expected=1;
 
 ###
 $test_message = 'name of the test';
 ###
-is( $result, 1, $test_message );
+is( $got, $expected, $test_message );


Follow ups