[Jifty-commit] jifty-plugin-oauth branch, plack, updated. 7ba65bec7cab8abd2412e69742873abc4469be0a
Jifty commits
jifty-commit at lists.jifty.org
Sat Feb 6 22:30:35 EST 2010
The branch, plack has been updated
via 7ba65bec7cab8abd2412e69742873abc4469be0a (commit)
from e9b03495f1a01db962da193b4652e0b0f71f8bd4 (commit)
Summary of changes:
t/lib/TestApp/Plugin/OAuth/Test.pm | 4 ++--
t/t/02-request-token.t | 3 +--
t/t/03-authorize.t | 3 +--
t/t/04-access-token.t | 3 +--
t/t/05-protected-resource.t | 3 +--
t/t/06-read-only.t | 3 +--
t/t/07-read-write.t | 3 +--
7 files changed, 8 insertions(+), 14 deletions(-)
- Log -----------------------------------------------------------------
commit 7ba65bec7cab8abd2412e69742873abc4469be0a
Author: sunnavy <sunnavy at bestpractical.com>
Date: Sun Feb 7 11:28:59 2010 +0800
actual_server for tests
diff --git a/t/lib/TestApp/Plugin/OAuth/Test.pm b/t/lib/TestApp/Plugin/OAuth/Test.pm
index 55afb03..1dc441d 100644
--- a/t/lib/TestApp/Plugin/OAuth/Test.pm
+++ b/t/lib/TestApp/Plugin/OAuth/Test.pm
@@ -26,7 +26,7 @@ our $can_write;
sub setup {
my $class = shift;
- $class->SUPER::setup;
+ $class->SUPER::setup(@_);
$class->export_to_level(1);
}
@@ -199,7 +199,7 @@ sub has_rsa {
sub rsa_skip {
my $count = shift || Carp::carp "You must specify a number of tests to skip.";
- ::skip 'Crypt::OpenSSL::RSA is required for these tests', $count unless has_rsa;
+ ::skip( 'Crypt::OpenSSL::RSA is required for these tests', $count ) unless has_rsa;
}
sub slurp {
diff --git a/t/t/02-request-token.t b/t/t/02-request-token.t
index ac1a27c..2b1051c 100644
--- a/t/t/02-request-token.t
+++ b/t/t/02-request-token.t
@@ -3,8 +3,7 @@ use warnings;
use strict;
use lib 't/lib';
-use Test::More tests => 61;
-use TestApp::Plugin::OAuth::Test;
+use TestApp::Plugin::OAuth::Test tests => 61, actual_server => 1;
start_server();
# create some consumers {{{
diff --git a/t/t/03-authorize.t b/t/t/03-authorize.t
index 821e79a..11dc954 100644
--- a/t/t/03-authorize.t
+++ b/t/t/03-authorize.t
@@ -3,8 +3,7 @@ use warnings;
use strict;
use lib 't/lib';
-use Test::More tests => 85;
-use TestApp::Plugin::OAuth::Test;
+use TestApp::Plugin::OAuth::Test tests => 85, actual_server => 1;
use Jifty::Test::WWW::Mechanize;
start_server();
diff --git a/t/t/04-access-token.t b/t/t/04-access-token.t
index 4c54f58..ce86e5a 100644
--- a/t/t/04-access-token.t
+++ b/t/t/04-access-token.t
@@ -3,8 +3,7 @@ use warnings;
use strict;
use lib 't/lib';
-use Test::More tests => 70;
-use TestApp::Plugin::OAuth::Test;
+use TestApp::Plugin::OAuth::Test tests => 70, actual_server => 1;
use Jifty::Test::WWW::Mechanize;
diff --git a/t/t/05-protected-resource.t b/t/t/05-protected-resource.t
index f8248bf..ace2911 100644
--- a/t/t/05-protected-resource.t
+++ b/t/t/05-protected-resource.t
@@ -3,8 +3,7 @@ use warnings;
use strict;
use lib 't/lib';
-use Test::More tests => 58;
-use TestApp::Plugin::OAuth::Test;
+use TestApp::Plugin::OAuth::Test tests => 58, actual_server => 1;
use Jifty::Test::WWW::Mechanize;
diff --git a/t/t/06-read-only.t b/t/t/06-read-only.t
index 3f28651..3410d41 100644
--- a/t/t/06-read-only.t
+++ b/t/t/06-read-only.t
@@ -3,8 +3,7 @@ use warnings;
use strict;
use lib 't/lib';
-use Test::More tests => 29;
-use TestApp::Plugin::OAuth::Test;
+use TestApp::Plugin::OAuth::Test tests => 29, actual_server => 1;
use Jifty::Test::WWW::Mechanize;
diff --git a/t/t/07-read-write.t b/t/t/07-read-write.t
index d454c55..53fc3c5 100644
--- a/t/t/07-read-write.t
+++ b/t/t/07-read-write.t
@@ -3,8 +3,7 @@ use warnings;
use strict;
use lib 't/lib';
-use Test::More tests => 28;
-use TestApp::Plugin::OAuth::Test;
+use TestApp::Plugin::OAuth::Test tests => 28, actual_server => 1;
use Jifty::Test::WWW::Mechanize;
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list