Refactor the double-testing-install attempt under travis
[dbsrgits/DBIx-Class.git] / t / inflate / datetime.t
index 14a2ce0..7062563 100644 (file)
@@ -42,8 +42,9 @@ warnings_exist {
 } [$dt_warn_re],
   'using a DateTime object in ->search generates a warning';
 
-TODO: {
-  local $TODO = "We can't do this yet before 0.09" if DBIx::Class->VERSION < 0.09;
+{
+  local $TODO = "This stuff won't work without a -dt operator of some sort"
+    unless eval { require DBIx::Class::SQLMaker::DateOps };
 
   is(eval { $row->id }, 1, 'DT in search');