From: Sven Schöling Date: Wed, 13 Mar 2013 18:04:22 +0000 (+0100) Subject: acts_as_list sollte nicht kaputtgehen hier X-Git-Tag: release-3.1.0beta1~517 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7b35c53fef5baf207dff127d5b96b9395b2ccaca;p=kivitendo-erp.git acts_as_list sollte nicht kaputtgehen hier --- diff --git a/t/db_helper/acts_as_list.t b/t/db_helper/acts_as_list.t index 2e7b70864..3b5b570ea 100644 --- a/t/db_helper/acts_as_list.t +++ b/t/db_helper/acts_as_list.t @@ -1,4 +1,4 @@ -use Test::More tests => 51; +use Test::More; use Test::Exception; use strict; @@ -9,9 +9,18 @@ use utf8; use Data::Dumper; use Support::TestSetup; -use_ok 'SL::DB::RequirementSpec'; -use_ok 'SL::DB::RequirementSpecItem'; -use_ok 'SL::DB::RequirementSpecTextBlock'; +eval { + require 'SL::DB::RequirementSpec'; + require 'SL::DB::RequirementSpecItem'; + require 'SL::DB::RequirementSpecTextBlock'; + 1; +} or my $skip = 'RequirementSpec is not available for this test'; + +if ($skip) { + plan skip_all => $skip; +} else { + plan tests => 48; +} sub reset_state { "SL::DB::Manager::${_}"->delete_all(all => 1) for qw(RequirementSpecTextBlock RequirementSpecItem RequirementSpec);