diff --git a/cpanfile b/cpanfile new file mode 100644 index 0000000..bf53143 --- /dev/null +++ b/cpanfile @@ -0,0 +1,8 @@ +requires 'perl', '5.012001'; +requires 'JSON', '2.16'; +requires 'Ouch', '0.0400'; +requires 'LWP::Protocol::https', '6.06'; + +on 'test' => sub { + requires 'Test::More', '0.98'; +}; diff --git a/t/01_versioned_path.t b/t/01_versioned_path.t index dff87b4..daf1755 100644 --- a/t/01_versioned_path.t +++ b/t/01_versioned_path.t @@ -11,6 +11,6 @@ isa_ok($fb, 'Facebook::Graph'); my $sarah = $fb->query->find('sarahbownds'); is $sarah->object_name, 'sarahbownds', 'get the proper object name'; -is $sarah->api_version, 'v2.8', 'get an api version'; -is $sarah->generate_versioned_path('sarahbownds'), 'v2.8/sarahbownds', 'create a versioned api path'; +is $sarah->api_version, 'v3.1', 'get an api version'; +is $sarah->generate_versioned_path('sarahbownds'), 'v3.1/sarahbownds', 'create a versioned api path'; diff --git a/t/04_picture.t b/t/04_picture.t index 149a2ad..48a0f3a 100644 --- a/t/04_picture.t +++ b/t/04_picture.t @@ -11,7 +11,7 @@ isa_ok($fb, 'Facebook::Graph'); my $sarah_pic = $fb->picture('sarahbownds'); isa_ok($sarah_pic, 'Facebook::Graph::Picture'); -is($sarah_pic->uri_as_string, 'https://graph.facebook.com/v2.8/sarahbownds/picture', 'default pic'); -is($sarah_pic->get_small->uri_as_string, 'https://graph.facebook.com/v2.8/sarahbownds/picture?type=small', 'small pic'); -is($sarah_pic->get_large->uri_as_string, 'https://graph.facebook.com/v2.8/sarahbownds/picture?type=large', 'large pic'); -is($sarah_pic->get_square->uri_as_string, 'https://graph.facebook.com/v2.8/sarahbownds/picture?type=square', 'square pic'); +is($sarah_pic->uri_as_string, 'https://graph.facebook.com/v3.1/sarahbownds/picture', 'default pic'); +is($sarah_pic->get_small->uri_as_string, 'https://graph.facebook.com/v3.1/sarahbownds/picture?type=small', 'small pic'); +is($sarah_pic->get_large->uri_as_string, 'https://graph.facebook.com/v3.1/sarahbownds/picture?type=large', 'large pic'); +is($sarah_pic->get_square->uri_as_string, 'https://graph.facebook.com/v3.1/sarahbownds/picture?type=square', 'square pic');