Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-15 Thread Mario Minati
I don't see the redirect in the previous response!? What does the normal output (Catalyst console debug output) look like, when redirect happens? Greets, Mario Minati Am Dienstag 14 April 2009 23:05:31 schrieb Moritz Onken: > $res = bless( { >'_previous' => bless( { > '_protocol' => '

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-15 Thread Mario Minati
Am Mittwoch 15 April 2009 15:18:18 schrieb Moritz Onken: > Am 15.04.2009 um 15:06 schrieb Mario Minati: > > Updated /Catalyst/ and /Test/ but still the same results. > > Updating more packages now. > > > > I'm still useing perl 5.8.8, that shouldn't be a problem, right? > > I'm on 5.8.8, too. > > W

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-15 Thread Moritz Onken
Am 15.04.2009 um 15:06 schrieb Mario Minati: Updated /Catalyst/ and /Test/ but still the same results. Updating more packages now. I'm still useing perl 5.8.8, that shouldn't be a problem, right? I'm on 5.8.8, too. We can easily change the test to $res = $res->previous if $res->previous;

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-15 Thread Mario Minati
Updated /Catalyst/ and /Test/ but still the same results. Updating more packages now. I'm still useing perl 5.8.8, that shouldn't be a problem, right? Greets Mario Minati Am Mittwoch 15 April 2009 09:49:35 schrieb Moritz Onken: > Try updating Test::WWW::Mechanize::Catalyst first. > > Am 14.04

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-15 Thread Moritz Onken
Try updating Test::WWW::Mechanize::Catalyst first. Am 14.04.2009 um 23:33 schrieb Mario Minati: Am Dienstag 14 April 2009 22:55:33 schrieb Moritz Onken: Hm, interesting. Seems like your test is not following the redirect, though it is present in _headers->location. Does the test pass if you r

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-14 Thread Mario Minati
Am Dienstag 14 April 2009 22:55:33 schrieb Moritz Onken: > Hm, interesting. Seems like your test is not following the redirect, > though it is present in > _headers->location. Does the test pass if you remove the ->previous > from line 30? Yes, all 18 test pass ok. > could you make a "cpan upgrad

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-14 Thread Moritz Onken
$res = bless( { '_previous' => bless( { '_protocol' => 'HTTP/1.1', '_content' => '{"success":1,"data": {"password":"foo","name":"bar","id":null}}', '_rc' => '201', '_headers' => bless( { 'x-catalyst' => '5.71001', 'content-base' => bless( do{\(my $o = '/user')}, '

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-14 Thread Moritz Onken
Hm, interesting. Seems like your test is not following the redirect, though it is present in _headers->location. Does the test pass if you remove the ->previous from line 30? could you make a "cpan upgrade" to upgrade all modules? Could be libwww-perl or something?! moritz Am 14.04.2009

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-14 Thread Mario Minati
Hi Moritz, now my understanding of testing Catalyst is a little better. :-) The user.t doesn't work for me, the problem with redirected request doesn't come up here. The output is: --snip-- ok 1 - request list of users ok 2 - response is JSON response ok 3 - no results [info] *** Request 2 (2.0

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-13 Thread Mario Minati
Am Samstag 11 April 2009 21:48:10 schrieb Moritz Onken: > > Hi Moritz, > > > > the suite looks good so far, I just read the code and gives quite > > important > > comments ('redirect' :roll:). > > > > The suite is not meant to run automatically on make test, right? > > Maybe we have to tweak Makefi

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-11 Thread Moritz Onken
Hi Moritz, the suite looks good so far, I just read the code and gives quite important comments ('redirect' :roll:). The suite is not meant to run automatically on make test, right? Maybe we have to tweak Makefile.PL but they should run automatically. I guess we need "tests_recursive;" in

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-11 Thread Mario Minati
Hi Moritz, the suite looks good so far, I just read the code and gives quite important comments ('redirect' :roll:). The suite is not meant to run automatically on make test, right? Do you have a special suggestion on howto include all the SVN FormFu modules into lib? Currently I have quite so

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-10 Thread Moritz Onken
Hi, I commited the test suite and created a test which is located in t/ rest/user.yml. I think this is a good start for new tests and works pretty good so far. I added a few comments to the test so you can understand why certain things happen or don't. I usually run tests like this: Cata

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-10 Thread Moritz Onken
Hi, I'm currently writing the test suite. If you can wait for a few more hours I'll commit it and we can start testing, yeeha :-) moritz Am 10.04.2009 um 10:44 schrieb Mario Minati: I wanted to step into the test creation for CatalystX::Controller::ExtJS::REST but am wondering how to s

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-10 Thread Carl Franks
2009/4/10 Mario Minati : > I wanted to step into the test creation for CatalystX::Controller::ExtJS::REST > but am wondering how to start. > > Do we need to create a complete Cat test app, including sqlite db to test it > or is there maybe an easier way? > > Which module would be a good start to ta

[html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-10 Thread Mario Minati
I wanted to step into the test creation for CatalystX::Controller::ExtJS::REST but am wondering how to start. Do we need to create a complete Cat test app, including sqlite db to test it or is there maybe an easier way? Which module would be a good start to take modules as template. I wish a