From: Justin Hunter Date: Tue, 22 Sep 2009 00:35:59 +0000 (-0700) Subject: we can get the schema from the translator now X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e64a9cba84e7f08b5a08d80b7b5f8c3d53af2535;p=dbsrgits%2FSQL-Translator-2.0-ish.git we can get the schema from the translator now --- diff --git a/t/60roundtrip.t b/t/60roundtrip.t index b189b47..0d72805 100644 --- a/t/60roundtrip.t +++ b/t/60roundtrip.t @@ -120,7 +120,7 @@ for my $args (@$plan) { local $TODO = $args->{todo} if $args->{todo}; lives_ok ( - sub { check_roundtrip ($args, $base_t, $base_schema) }, + sub { check_roundtrip ($args, $base_t) }, "Round trip for $args->{name} did not throw an exception", ); } @@ -129,12 +129,12 @@ for my $args (@$plan) { done_testing; sub check_roundtrip { - my ($args, $base_t, $base_schema) = @_; + my ($args, $base_t) = @_; # create some output from the submitted schema my $base_out = $base_t->translate( - data => $base_schema, + data => $base_t->schema, producer => $args->{engine}, producer_args => $args->{producer_args} || {}, );