Permalink
Browse files

Fix tests

  • Loading branch information...
1 parent a4a95c7 commit acbc894dc3753869dca137846da66212349fd768 @marcusramberg committed Mar 9, 2012
Showing with 7 additions and 4 deletions.
  1. +3 −0 Changes
  2. +1 −1 lib/Mojolicious/Plugin/OAuth2.pm
  3. +2 −2 t/basic.t
  4. +1 −1 t/blocking.t
View
@@ -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
@@ -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 {
View
@@ -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"),
View
@@ -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",

0 comments on commit acbc894

Please sign in to comment.