X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F24yaml.t;h=9c8bda355b344c4383663f3e549bc93399104e2e;hb=124b192cb3e01a3fe6441874c29918609d24de65;hp=cf24d00b6b672f710c9f21265cdc50f1bbae5c36;hpb=2c05ed8e81910539b8225be697c07bdc4b10822a;p=dbsrgits%2FSQL-Translator.git diff --git a/t/24yaml.t b/t/24yaml.t index cf24d00..9c8bda3 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,13 +12,13 @@ BEGIN { 'SQL::Translator::Producer::YAML'); } -my $yaml = <<'YAML'; ---- #YAML:1.0 +my $sqlt_version = $SQL::Translator::VERSION; +my $yaml = <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;