[Jifty-commit] jifty-plugin-oauth branch, plack, updated. f764fa10f19f0abc75cd500d5f32ed0d8ed3ca36
Jifty commits
jifty-commit at lists.jifty.org
Sat Feb 6 23:17:44 EST 2010
The branch, plack has been updated
via f764fa10f19f0abc75cd500d5f32ed0d8ed3ca36 (commit)
from 7ba65bec7cab8abd2412e69742873abc4469be0a (commit)
Summary of changes:
t/t/06-read-only.t | 2 ++
t/t/07-read-write.t | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit f764fa10f19f0abc75cd500d5f32ed0d8ed3ca36
Author: Chia-liang Kao <clkao at clkao.org>
Date: Sun Feb 7 12:17:36 2010 +0800
Disallow redirect for REST requests so we can check against the success flag, not the created record.
diff --git a/t/t/06-read-only.t b/t/t/06-read-only.t
index 3410d41..5bae801 100644
--- a/t/t/06-read-only.t
+++ b/t/t/06-read-only.t
@@ -93,9 +93,11 @@ $favorites->unlimit;
is($favorites->count, 0, "no favorites found");
# }}}
# user REST POST {{{
+$umech->requests_redirectable([]);
$umech->post("$URL/=/model/Favorite.yml",
{ thing => 'more tests' },
);
+
$umech->content_contains("success: 1", "created a favorite");
$favorites = TestApp::Plugin::OAuth::Model::FavoriteCollection->new(
diff --git a/t/t/07-read-write.t b/t/t/07-read-write.t
index 53fc3c5..5b6a506 100644
--- a/t/t/07-read-write.t
+++ b/t/t/07-read-write.t
@@ -97,6 +97,7 @@ is($favorites->count, 1, "no favorites found");
is($favorites->first->thing, 'tests', "correct argument");
# }}}
# user REST POST {{{
+$umech->requests_redirectable([]);
$umech->post("$URL/=/model/Favorite.yml",
{ thing => 'more tests' },
);
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list