Skip to content

Commit

Permalink
Remove :elements usage to fix Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Altai-man committed Nov 17, 2018
1 parent 704e4cb commit f00ad78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/04-media-type-refs.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use v6.c;
use Test;
use OpenAPI::Model :elements;
use OpenAPI::Model;
use JSON::Fast;

my $json = q:to/END/;
Expand Down Expand Up @@ -38,7 +38,7 @@ END

my $api;

lives-ok { $api = MediaType.deserialize(from-json($json), OpenAPI::Model.new) }, 'Can parse media type with $ref';
lives-ok { $api = OpenAPI::Model::MediaType.deserialize(from-json($json), OpenAPI::Model.new) }, 'Can parse media type with $ref';

is $api.serialize, from-json($json), 'Can serialize $ref';

Expand Down

0 comments on commit f00ad78

Please sign in to comment.