From 7b35c53fef5baf207dff127d5b96b9395b2ccaca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 13 Mar 2013 19:04:22 +0100 Subject: [PATCH] acts_as_list sollte nicht kaputtgehen hier --- t/db_helper/acts_as_list.t | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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); -- 2.20.1