X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F24yaml.t;h=08757d9f47f3a5e7006ff76cdb2be67b36f3852d;hb=db195df8af1efc7fb983ec6041fcb064dada7124;hp=e578e186cfffcda83e8ef772e4edd3c5b3fb3dd4;hpb=2d691ec135298f8a4523656dc0516dcb7af3e8cd;p=dbsrgits%2FSQL-Translator.git diff --git a/t/24yaml.t b/t/24yaml.t index e578e18..08757d9 100644 --- a/t/24yaml.t +++ b/t/24yaml.t @@ -1,6 +1,4 @@ -#!/usr/local/bin/perl -# vim: set ft=perl: - +use warnings; use strict; use Test::More; use Test::Differences; @@ -14,12 +12,14 @@ BEGIN { 'SQL::Translator::Producer::YAML'); } -my $yaml = q/--- #YAML:1.0 +my $sqlt_version = $SQL::Translator::VERSION; +use YAML qw(Dump Load); +my $yaml = Dump(Load(<new( +my $file = "$Bin/data/sqlite/create.sql"; +open FH, "<$file" or die "Can't read '$file': $!\n"; +local $/; +my $data = ; +my $tr = SQL::Translator->new( parser => 'SQLite', producer => 'YAML', - filename => "$Bin/data/sqlite/create.sql", + data => $data, ); my $out;