uninitialized constant Test error when running Fitnisse ruby

A

Arti Singh

has anyone seen this error before? I have no idea on how to fix I have
all but exhausted myself looking for the solutions to this










uninitialized constant Test
C:/Documents and
Settings/asingh/Desktop/QA/oriontests/orion_login.rb:1:in `'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture_loader.rb:65:in
`require'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture_loader.rb:65:in
`require_file'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture_loader.rb:41:in
`block in find_class'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture_loader.rb:29:in
`each'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture_loader.rb:29:in
`detect'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture_loader.rb:29:in
`find_class'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture_loader.rb:14:in
`block in find_fixture_class'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture_loader.rb:14:in
`collect'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture_loader.rb:14:in
`find_fixture_class'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture.rb:82:in
`find_class'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture.rb:138:in
`get_linked_fixture_with_args'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture.rb:92:in
`do_tables'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fit_server.rb:93:in
`process'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fit_server.rb:24:in
`run'
C:/Ruby/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/bin/FitServer.rb:5:in
`'
 
P

Phillip Gawlowski

has anyone seen this error before? I have no idea on how to fix I have
all but exhausted myself looking for the solutions to this
uninitialized constant Test

Your suit of tests is lacking a require, somewhere.

The details depend on what you use for testing, but one option is

require 'test/unit' # Ruby's included test suit

That requires should be in every file doing tests, ideally, so you can
run them independently.
 
A

Arti Singh

Thanks, that was close, I had included Test::Unit::TestCase without
requiring test/unit in my code.Thanks .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top