Problem with Rails: cgi.rb:342

here is the error i am getting while trying to do functional /
integration tests. can someone tell me if this error has been fixed, and
if so, how do i get the fix ? i am currently running 1.8.4 of ruby

Loaded suite test/integration/stories_test

NoMethodError (private method gsub' called for 0:Fixnum): c:/ruby/lib/ruby/1.8/cgi.rb:342:inescape’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cgi_e
xt/cookie_performance_fix.rb:79:in to_s' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cgi_e xt/cookie_performance_fix.rb:79:into_s’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cooki
es.rb:73:in set_cookie' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cooki es.rb:60:in[]=’
/app/controllers/application.rb:21:in set_uid' /app/controllers/login_controller.rb:52:inlogin’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.
rb:910:in perform_action_without_filters' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filte rs.rb:368:inperform_action_without_benchmark’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/bench
marking.rb:69:in perform_action_without_rescue' c:/ruby/lib/ruby/1.8/benchmark.rb:300:inmeasure’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/bench
marking.rb:69:in perform_action_without_rescue' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/rescu e.rb:82:inperform_action’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.
rb:381:in process_without_filters' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filte rs.rb:377:inprocess_without_session_management_support’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/sessi
on_management.rb:117:in process_without_test' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/test_ process.rb:16:inprocess’
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in
dispatch ' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/integ ration.rb:232:inprocess’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/integ
ration.rb:145:in get' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/integ ration.rb:470:inget’
test/integration/stories_test.rb:10:in test_login' c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:70:inrun’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/integ
ration.rb:427:in run' c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:32:inrun’
c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in run' c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:32:inrun’
c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in run' c:/ruby/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:44:inrun_suite’
c:/ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:65:in
start_mediato r' c:/ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:39:instart’
c:/ruby/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:27:in run' c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:200:inrun’
c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:13:in `run’
c:/ruby/lib/ruby/1.8/test/unit.rb:285
test/integration/stories_test.rb:6

DEBUG - testuser prod peer id is 2222
DEBUG - id is ‘2222’
F
Finished in 0.609 seconds.

  1. Failure:
    test_login(StoriesTest)
    [test/integration/stories_test.rb:13:in test_login' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/inte gration.rb:427:inrun’]:
    Expected response to be a <:redirect>, but was <500>

1 tests, 2 assertions, 1 failures, 0 errors

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs