summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-08-31 15:42:09 +0200
committerfranck cuny <franck@lumberjaph.net>2010-08-31 15:42:09 +0200
commit82e0867d951c7a7fc2aa70d2870789607d2f2023 (patch)
tree3227f57988b47953f339d8259a222aef260fd56e
parentinitial import (diff)
downloadnet-http-api-spec-82e0867d951c7a7fc2aa70d2870789607d2f2023.tar.gz
s/load/new/
-rw-r--r--lib/Net/HTTP/API/Spec.pm2
-rw-r--r--t/01_basic.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Net/HTTP/API/Spec.pm b/lib/Net/HTTP/API/Spec.pm
index 37975c2..6fcd6d4 100644
--- a/lib/Net/HTTP/API/Spec.pm
+++ b/lib/Net/HTTP/API/Spec.pm
@@ -6,7 +6,7 @@ use IO::All;
 
 use Net::HTTP::API::Core;
 
-sub load_from_spec {
+sub new_from_spec {
     my ($class, $spec_file) = @_;
 
     my $content < io($spec_file);
diff --git a/t/01_basic.t b/t/01_basic.t
index bf1d999..64983c1 100644
--- a/t/01_basic.t
+++ b/t/01_basic.t
@@ -4,7 +4,7 @@ use Test::More;
 
 use Net::HTTP::API::Spec;
 
-ok my $client = Net::HTTP::API::Spec->load_from_spec('t/spec/test1.json');
+ok my $client = Net::HTTP::API::Spec->new_from_spec('t/spec/test1.json');
 
 my @methods = $client->meta->get_all_net_api_methods();
 is scalar @methods, 2;