From acbc894dc3753869dca137846da66212349fd768 Mon Sep 17 00:00:00 2001 From: Marcus Ramberg Date: Fri, 9 Mar 2012 22:13:21 +0100 Subject: [PATCH] Fix tests --- Changes | 3 +++ lib/Mojolicious/Plugin/OAuth2.pm | 2 +- t/basic.t | 4 ++-- t/blocking.t | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Changes b/Changes index 9cb30bf..395371d 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,6 @@ +0.6 2012-03-09 00:00:00 + - Change to use app_url + 0.5 2011-10-19 13:54 - Add SSL dependency diff --git a/lib/Mojolicious/Plugin/OAuth2.pm b/lib/Mojolicious/Plugin/OAuth2.pm index 7d3039a..97ffb45 100644 --- a/lib/Mojolicious/Plugin/OAuth2.pm +++ b/lib/Mojolicious/Plugin/OAuth2.pm @@ -4,7 +4,7 @@ use base qw/Mojolicious::Plugin/; use Carp qw/croak/; use strict; -our $VERSION='0.5'; +our $VERSION='0.6'; __PACKAGE__->attr(providers=>sub { return { diff --git a/t/basic.t b/t/basic.t index 79851c7..1055f7f 100644 --- a/t/basic.t +++ b/t/basic.t @@ -3,8 +3,8 @@ use Test::Mojo; use Test::More; my $t=Test::Mojo->new; -my $host = $t->ua->test_server->host; -my $port = $t->ua->test_server->port; +my $host = $t->ua->app_url->host; +my $port = $t->ua->app_url->port; plugin 'OAuth2', test => { authorize_url => Mojo::URL->new("http://$host:$port/fake_auth"), diff --git a/t/blocking.t b/t/blocking.t index c10521f..182fea5 100644 --- a/t/blocking.t +++ b/t/blocking.t @@ -3,7 +3,7 @@ use Test::Mojo; use Test::More; my $t=Test::Mojo->new; -my $port = $t->ua->test_server; +my $port = $t->ua->app_url; plugin 'OAuth2', test => { authorize_url => "/fake_auth",