Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusramberg committed Mar 9, 2012
1 parent a4a95c7 commit acbc894
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions 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 0.5 2011-10-19 13:54
- Add SSL dependency - Add SSL dependency


Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/OAuth2.pm
Expand Up @@ -4,7 +4,7 @@ use base qw/Mojolicious::Plugin/;
use Carp qw/croak/; use Carp qw/croak/;
use strict; use strict;


our $VERSION='0.5'; our $VERSION='0.6';


__PACKAGE__->attr(providers=>sub { __PACKAGE__->attr(providers=>sub {
return { return {
Expand Down
4 changes: 2 additions & 2 deletions t/basic.t
Expand Up @@ -3,8 +3,8 @@ use Test::Mojo;
use Test::More; use Test::More;


my $t=Test::Mojo->new; my $t=Test::Mojo->new;
my $host = $t->ua->test_server->host; my $host = $t->ua->app_url->host;
my $port = $t->ua->test_server->port; my $port = $t->ua->app_url->port;


plugin 'OAuth2', test => { plugin 'OAuth2', test => {
authorize_url => Mojo::URL->new("http://$host:$port/fake_auth"), authorize_url => Mojo::URL->new("http://$host:$port/fake_auth"),
Expand Down
2 changes: 1 addition & 1 deletion t/blocking.t
Expand Up @@ -3,7 +3,7 @@ use Test::Mojo;
use Test::More; use Test::More;


my $t=Test::Mojo->new; my $t=Test::Mojo->new;
my $port = $t->ua->test_server; my $port = $t->ua->app_url;


plugin 'OAuth2', test => { plugin 'OAuth2', test => {
authorize_url => "/fake_auth", authorize_url => "/fake_auth",
Expand Down

0 comments on commit acbc894

Please sign in to comment.