X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=t%2Fclient.t;fp=t%2Fclient.t;h=1dd0cd425ab19c5f519bee7ab5a63e7a791d173d;hb=afe2bc3fe09e80cea209312408159ed83f1bfc91;hp=4775b70036f8c44cc12b10285b9f3bb6a15184b3;hpb=5d541d3263496638433052515b9dea5b271f9352;p=chaz%2Fgraphql-client diff --git a/t/client.t b/t/client.t index 4775b70..1dd0cd4 100755 --- a/t/client.t +++ b/t/client.t @@ -14,14 +14,14 @@ use GraphQL::Client; use MockTransport; subtest 'transport' => sub { - my $client = GraphQL::Client->new(class => 'http'); - isa_ok($client->transport, 'GraphQL::Client::http', 'decide transport from class'); + my $client = GraphQL::Client->new(transport_class => 'http'); + isa_ok($client->transport, 'GraphQL::Client::http', 'decide transport from transport_class'); $client = GraphQL::Client->new(url => 'https://localhost:4000/graphql'); isa_ok($client->transport, 'GraphQL::Client::http', 'decide transport from url'); - $client = GraphQL::Client->new(class => 'not a real class'); - is($client->class, 'not a real class', 'class constructor works'); + $client = GraphQL::Client->new(transport_class => 'not a real class'); + is($client->transport_class, 'not a real class', 'transport_class constructor works'); throws_ok { $client->transport } qr/^Failed to load transport/, 'throws if invalid transport'; };