Hi!
I am in the process of packaging Camping 2.1 for Debian. While renewing
the entire packaging structure I wanted to integrate the tests in the
build procedure. However, surprisingly, one of the tests (apps) fails
(I require test/app*.rb):
Started
......F........
Finished in 0.057194 seconds.
1) Failure:
test_session(Sessions::Test)
[./test/test_helper.rb:41:in `assert_body''
./test/app_sessions.rb:44:in `test_session'']:
<"[42, 56, 99]"> expected but was
<"[nil, nil, 99]">.
15 tests, 17 assertions, 1 failures, 0 errors
That result is quite surprising. Redirecting does not preserve state?
Or is this a desired change since 2.1 and the test has not been fixed
since?
Paul
--
PhD Student @ Eindhoven | email: paul at luon.net
University of Technology, The Netherlands | JID: paul at
luon.net>>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID:
0x50064181
Pretty sure this is related to incompatability with the latest Rack (which suddenly slightly "broke" the Session-API). It''s fixed in latest master. Maybe we should just do a release soon. // Magnus Holm On Sat, Sep 24, 2011 at 22:22, Paul van Tilburg <paul at luon.net> wrote:> Hi! > > I am in the process of packaging Camping 2.1 for Debian. ?While renewing > the entire packaging structure I wanted to integrate the tests in the > build procedure. ?However, surprisingly, one of the tests (apps) fails > (I require test/app*.rb): > > ?Started > ?......F........ > ?Finished in 0.057194 seconds. > > ? ?1) Failure: > ?test_session(Sessions::Test) > ? ? ?[./test/test_helper.rb:41:in `assert_body'' > ? ? ? ./test/app_sessions.rb:44:in `test_session'']: > ?<"[42, 56, 99]"> expected but was > ?<"[nil, nil, 99]">. > > ?15 tests, 17 assertions, 1 failures, 0 errors > > That result is quite surprising. ?Redirecting does not preserve state? > Or is this a desired change since 2.1 and the test has not been fixed > since? > > Paul > > -- > PhD Student @ Eindhoven ? ? ? ? ? ? ? ? ? ? | email: paul at luon.net > University of Technology, The Netherlands ? | JID: paul at luon.net >>>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181 > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >
On Sat, Sep 24, 2011 at 11:01:42PM +0200, Magnus Holm wrote:> Pretty sure this is related to incompatability with the latest Rack > (which suddenly slightly "broke" the Session-API). It''s fixed in > latest master. Maybe we should just do a release soon.Alright. I will follow with packaging once that is out. I already suspected the interplay with Rack. Cheers! Paul -- PhD Student @ Eindhoven | email: paul at luon.net University of Technology, The Netherlands | JID: paul at luon.net>>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181