diff --git a/t/lib/DistGen.pm b/t/lib/DistGen.pm index ae1ed53..9e8c618 100644 --- a/t/lib/DistGen.pm +++ b/t/lib/DistGen.pm @@ -152,25 +152,6 @@ sub _gen_default_filedata { use $module_name; ok 1; --- - - $self->$add_unless('META.yml', undent(<<" ----")); - --- - name: $dist_name - version: 0.001 - author: - - 'David Golden ' - - 'Leon Timmermans ' - abstract: 'A testing dist' - license: perl - requires: - perl: 5.006 - Module::Build::Tiny: 0 - generated_by: Leon Timmermans - dynamic_config: 0 - meta-spec: - url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 - ---- } sub name { shift()->{name} } diff --git a/t/simple.t b/t/simple.t index 9aaf982..f6920e9 100644 --- a/t/simple.t +++ b/t/simple.t @@ -53,6 +53,37 @@ if ($has_compiler) { return "Hello World!\n"; } --- + + $dist->add_file('META.json', undent(<<" ----")); + { + "name": "Foo-Bar", + "version": 0.001, + "author": [ + "David Golden ", + "Leon Timmermans " + ], + "abstract": "A testing dist", + "license": "perl_5", + "prereqs": { + "configure": { + "requires": { + "Module::Build::Tiny": 0 + } + }, + "runtime": { + "requires": { + "perl": 5.006 + } + } + }, + "generated_by": "Leon Timmermans", + "dynamic_config": 1, + "meta-spec": { + "url": "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version": 2 + } + } + ---- } $dist->regen;