Smarter todoification (this doesn't sound like a bad idea for CPAN in general)
[dbsrgits/DBIx-Class.git] / t / 53lean_startup.t
index e106da2..4cc046b 100644 (file)
@@ -102,10 +102,18 @@ BEGIN {
 
     Scalar::Util
     List::Util
-    Data::Compare
 
     Class::Accessor::Grouped
     Class::C3::Componentised
+
+    Data::Dumper::Concise
+
+    File::Spec
+
+    Module::Runtime
+    Data::Query::Constants
+    Data::Query::ExprHelpers
+    Data::Query::ExprDeclare
   ));
 
   require DBICTest::Schema;
@@ -118,6 +126,7 @@ BEGIN {
     Moo
     Sub::Quote
     Context::Preserve
+    Data::Compare
   ));
 
   my $s = DBICTest::Schema->connect('dbi:SQLite::memory:');
@@ -151,9 +160,15 @@ BEGIN {
 
 # and do full populate() as well, just in case - shouldn't add new stuff
 {
-  require DBICTest;
+  local $ENV{DBICTEST_SQLITE_REVERSE_DEFAULT_ORDER};
+  {
+    # in general we do not want DBICTest to load before sqla, but it is
+    # ok to cheat here
+    local $INC{'SQL/Abstract.pm'};
+    require DBICTest;
+  }
   my $s = DBICTest->init_schema;
-  is ($s->resultset('Artist')->next->name, 'Caterwauler McCrae');
+  is ($s->resultset('Artist')->find(1)->name, 'Caterwauler McCrae');
   assert_no_missing_expected_requires();
 }