Added Chris Hilton's patch so version number test is based on current version and...
Mark Addison [Wed, 25 May 2005 11:25:15 +0000 (11:25 +0000)]
t/24yaml.t
t/36-filters.t

index 09762c9..fc5ab6d 100644 (file)
@@ -14,7 +14,8 @@ BEGIN {
         'SQL::Translator::Producer::YAML');
 }
 
-my $yaml = <<'YAML';
+my $sqlt_version = $SQL::Translator::VERSION;
+my $yaml = <<YAML;
 ---
 schema:
   procedures: {}
@@ -226,7 +227,7 @@ translator:
   producer_type: SQL::Translator::Producer::YAML
   show_warnings: 0
   trace: 0
-  version: 0.07
+  version: $sqlt_version
 YAML
 
 my $file = "$Bin/data/sqlite/create.sql";
index c67a8c9..29454ea 100644 (file)
@@ -53,6 +53,7 @@ schema:
           name: First_Name
 };
 
+my $sqlt_version = $SQL::Translator::VERSION;
 my $ans_yaml = qq{---
 schema:
   procedures: {}
@@ -96,7 +97,7 @@ translator:
   producer_type: SQL::Translator::Producer::YAML
   show_warnings: 1
   trace: 0
-  version: 0.07
+  version: $sqlt_version
 };
 
 # Parse the test XML schema