|
sub _build_description { "Testing current weather result" }
has request_obj => (
lazy => 1,
is => 'ro' ,
default => sub {
Weather::OpenWeatherMap::Request->new_for(
Current =>
api_key => 'abcd' ,
tag => 'foo' ,
location => 'Manchester, NH' ,
)
},
);
has result_obj => (
lazy => 1,
is => 'ro' ,
default => sub {
my ( $self ) = @_ ;
Weather::OpenWeatherMap::Result->new_for(
Current =>
request => $self ->request_obj,
json => $self ->mock_json,
)
},
);
has mock_json => (
lazy => 1,
is => 'ro' ,
default => sub { shift ->get_mock_json( 'current' ) },
);
run_me;
done_testing
|