← Back to team overview

mvhub-dev team mailing list archive

[Branch ~mvhub-commit/mvhub/trunk] Rev 403: merged lp:~omacneil/mvhub/cleanup_dot_t_templates

 

Merge authors:
  Dan MacNeil (omacneil)
Related merge proposals:
  https://code.launchpad.net/~omacneil/mvhub/cleanup_dot_t_templates/+merge/27097
  proposed by: Dan MacNeil (omacneil)
  review: Approve - Lee Goodrich (leegoodrich)
------------------------------------------------------------
revno: 403 [merge]
committer: Dan MacNeil <dan@xxxxxxxxxx>
branch nick: trunk
timestamp: Wed 2010-06-09 14:58:24 -0400
message:
   merged lp:~omacneil/mvhub/cleanup_dot_t_templates
modified:
  app-mvhub/project-tools/templates/template.t
  app-mvhub/project-tools/templates/template_subs.t


--
lp:mvhub
https://code.launchpad.net/~mvhub-commit/mvhub/trunk

Your team MVHub Developers is subscribed to branch lp:mvhub.
To unsubscribe from this branch go to https://code.launchpad.net/~mvhub-commit/mvhub/trunk/+edit-subscription
=== 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:07:14 +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:03:49 +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 );