X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F38-filter-names.t;h=670fd667583a9be4e604c42df506bb03377a31e8;hb=8ce5d6158b9fb1e09bda97b1061eea5232c268ad;hp=8802c86fbb5dc2ee43d44135efbfb0eff4ccfc1a;hpb=0013ee25dc2ec992dff4fe8c971dc224821ce1cb;p=dbsrgits%2FSQL-Translator.git diff --git a/t/38-filter-names.t b/t/38-filter-names.t index 8802c86..670fd66 100644 --- a/t/38-filter-names.t +++ b/t/38-filter-names.t @@ -64,7 +64,7 @@ translator: producer_type: SQL::Translator::Producer::YAML show_warnings: 1 trace: 0 - version: 0.07 + version: SUPPRESSED }; # Parse the test schema @@ -89,4 +89,7 @@ my $out; lives_ok { $out = $obj->translate; } "Translate ran"; is $obj->error, '' ,"No errors"; ok $out ne "" ,"Produced something!"; +# Somewhat hackishly modify the yaml with a regex to avoid +# failing randomly on every change of version. +$out =~ s/version: .*/version: SUPPRESSED/; eq_or_diff $out, $ans_yaml ,"Output looks right";