1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
Description: draft2019-09 is not yet released with JSON-Schema-Test-Suite.
Author: Andrius Merkys <merkys@debian.org>
--- a/t/02-constructor.t
+++ b/t/02-constructor.t
@@ -9,17 +9,17 @@
use Test::File::ShareDir -share => { -dist => { 'Test-JSON-Schema-Acceptance' => 'share' } };
use Test::JSON::Schema::Acceptance;
-is(
- Test::JSON::Schema::Acceptance->new->specification,
- 'draft2019-09',
- '"specification" defaults to latest draft'
-);
-
-is(
- Test::JSON::Schema::Acceptance->new(specification => 'latest')->specification,
- 'draft2019-09',
- 'latest becomes draft2019-09',
-);
+# is(
+# Test::JSON::Schema::Acceptance->new->specification,
+# 'draft2019-09',
+# '"specification" defaults to latest draft'
+# );
+
+# is(
+# Test::JSON::Schema::Acceptance->new(specification => 'latest')->specification,
+# 'draft2019-09',
+# 'latest becomes draft2019-09',
+# );
foreach my $version (3,4,6,7) {
is(
@@ -50,7 +50,7 @@
);
SKIP: {
- skip 'this test can only be run in the git repository', 1 if not -d '.git';
+ skip 'this test can only be run in the git repository', 1;
is(readlink('share/tests/latest'), 'draft2019-09', 'latest draft is still 2019-09')
or warn 'a new draft has been released! update the "latest" munging in BUILDARGS!';
--- a/t/11-additional-resources.t
+++ /dev/null
@@ -1,17 +0,0 @@
-# vim: set ts=8 sts=2 sw=2 tw=100 et :
-use strict;
-use warnings;
-no if "$]" >= 5.031009, feature => 'indirect';
-
-use Test::More 0.88;
-use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
-use Test::File::ShareDir -share => { -dist => { 'Test-JSON-Schema-Acceptance' => 'share' } };
-use Test::JSON::Schema::Acceptance;
-
-my $accepter = Test::JSON::Schema::Acceptance->new(specification => 'draft2019-09');
-
-ok($accepter->additional_resources->is_dir, 'additional_resources directory exists');
-
-ok($accepter->additional_resources->child('integer.json')->is_file, 'integer.json file exists');
-
-done_testing;
|