Testing problems: ActiveSupport

Hey everybody,

I am trying to test a small application with a simple testing, but I get
the following errors while using Aptana 2.0.5 with Ruby 1.9.1 and Rails
2.3.8(I know why I get the first one, but I’m not sure about the
ActiveSupport errors):

Exception: undefined method screen_name' for nil:NilClass C:/Ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/whiny_nil.rb:52:inmethod_missing’
D:/Projects/RailsSpace/test/functional/user_controller_test.rb:39:in
try_to_login' D:/Projects/RailsSpace/test/functional/user_controller_test.rb:28:intesting_logout’
C:/Ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/testing/setup_and_teardown.rb:62:in
run' C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/testsuite.rb:38:inblock in run’
C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/testsuite.rb:37:in
each' C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/testsuite.rb:37:inrun’
C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/testsuite.rb:38:in
block in run' C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/testsuite.rb:37:ineach’
C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/testsuite.rb:37:in
run' C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/ui/testrunnermediator.rb:48:inrun_suite’
D:/Projects/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:117:in
start_mediator' D:/Projects/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:62:instart’
D:/Projects/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:332:in
`’

Thanks a lot to everybody in advance!

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