From: <chr...@us...> - 2006-05-16 20:21:00
|
Revision: 873 Author: chromatic Date: 2006-05-16 13:20:48 -0700 (Tue, 16 May 2006) ViewCVS: http://svn.sourceforge.net/everydevel/?rev=873&view=rev Log Message: ----------- r16735@windwheel: chromatic | 2006-05-16 13:20:39 -0700 Ported opcode tests to the new format. Modified Paths: -------------- trunk/ebase/MANIFEST trunk/ebase/t/Node/opcode.t Added Paths: ----------- trunk/ebase/lib/Everything/Node/Test/opcode.pm Property Changed: ---------------- trunk/ebase/ Property changes on: trunk/ebase ___________________________________________________________________ Name: svk:merge - a6810612-c0f9-0310-9d3e-a9e4af8c5745:/ebase/offline:16732 + a6810612-c0f9-0310-9d3e-a9e4af8c5745:/ebase/offline:16735 Modified: trunk/ebase/MANIFEST =================================================================== --- trunk/ebase/MANIFEST 2006-05-16 20:19:07 UTC (rev 872) +++ trunk/ebase/MANIFEST 2006-05-16 20:20:48 UTC (rev 873) @@ -102,6 +102,7 @@ lib/Everything/Node/Test/nodeletgroup.pm lib/Everything/Node/Test/nodemethod.pm lib/Everything/Node/Test/nodetype.pm +lib/Everything/Node/Test/opcode.pm lib/Everything/Node/Test/permission.pm lib/Everything/Node/Test/restricted_superdoc.pm lib/Everything/Node/Test/superdoc.pm Added: trunk/ebase/lib/Everything/Node/Test/opcode.pm =================================================================== --- trunk/ebase/lib/Everything/Node/Test/opcode.pm (rev 0) +++ trunk/ebase/lib/Everything/Node/Test/opcode.pm 2006-05-16 20:20:48 UTC (rev 873) @@ -0,0 +1,18 @@ +package Everything::Node::Test::opcode; + +use strict; +use warnings; + +use base 'Everything::Node::Test::htmlcode'; +use Test::More; + +sub test_extends :Test( +1 ) +{ + my $self = shift; + my $class = $self->node_class(); + ok( $class->isa( 'Everything::Node::htmlcode' ), + 'opcode should extend htmlcode' ); + $self->SUPER(); +} + +1; Property changes on: trunk/ebase/lib/Everything/Node/Test/opcode.pm ___________________________________________________________________ Name: svn:mime-type + text/plain; charset=UTF-8 Name: svn:eol-style + native Modified: trunk/ebase/t/Node/opcode.t =================================================================== --- trunk/ebase/t/Node/opcode.t 2006-05-16 20:19:07 UTC (rev 872) +++ trunk/ebase/t/Node/opcode.t 2006-05-16 20:20:48 UTC (rev 873) @@ -1,23 +1,4 @@ -#!/usr/bin/perl +#! perl -use strict; -use warnings; - -BEGIN -{ - chdir 't' if -d 't'; - use lib 'lib'; -} - -use Test::More tests => 4; - -my $module = 'Everything::Node::opcode'; -use_ok( $module ) or exit; - -ok( $module->isa( 'Everything::Node::htmlcode' ), - 'theme should extend htmlcode' ); - -can_ok( $module, 'dbtables' ); -my @tables = $module->dbtables(); -is_deeply( \@tables, [qw( htmlcode node )], - 'dbtables() should return node tables' ); +use Everything::Node::Test::opcode; +Everything::Node::Test::opcode->runtests(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |