Problems running rake test (possibly gem/debian issues)

Hi,

I seem to have a constant battle going on my machine about gems. The
latest problem is when i attempt to run "rake test" on my rails project,
here is the output:

~/code/tradertips(with_clearance) $ rake test
Missing these required gems:
cucumber = 0.3.0

This is a very specific version requirement. It means *exactly*
version 0.3.0. Not 0.3.11, not 0.3.6.

~/code/tradertips(with_clearance) $ gem list cuc*

*** LOCAL GEMS ***

cucumber (0.3.11, 0.3.6)

I'd try relaxing your gem requirement (above), or manually installing
cucumber 0.3.0, e.g.,

    $ sudo gem install -v 0.3.0 cucumber

~ j.

John Barnette wrote:

I'd try relaxing your gem requirement (above), or manually installing
cucumber 0.3.0, e.g.,

Thanks John, I went back and tried this and it did help resolve the
dependency issue, however i still find myself unable to run the tests:

~/code/tradertips(with_clearance) $ rake test
(in /home/keith/workspace/tradertips)
/usr/bin/ruby1.8 -I"lib:test"
"/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
"test/unit/clearance_mailer_test.rb" "test/unit/mailer_test.rb"
"test/unit/helpers/passwords_helper_test.rb"
"test/unit/helpers/users_helper_test.rb"
"test/unit/helpers/confirmations_helper_test.rb"
"test/unit/helpers/home_helper_test.rb"
"test/unit/helpers/invites_helper_test.rb"
"test/unit/helpers/sessions_helper_test.rb" "test/unit/user_test.rb"
"test/unit/invite_test.rb"
/home/keith/workspace/tradertips/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in
`load_missing_constant': uninitialized constant Clearance::Test
(NameError)
  from
/home/keith/workspace/tradertips/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in
`const_missing'
  from ./test/unit/clearance_mailer_test.rb:5
  from
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in
`load'
  from
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
  from
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in
`each'
  from
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
/usr/bin/ruby1.8 -I"lib:test"
"/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
"test/functional/passwords_controller_test.rb"
"test/functional/confirmations_controller_test.rb"
"test/functional/invites_controller_test.rb"
"test/functional/home_controller_test.rb"
"test/functional/sessions_controller_test.rb"
"test/functional/users_controller_test.rb"
/home/keith/workspace/tradertips/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in
`load_missing_constant': uninitialized constant Clearance::Test
(NameError)
  from
/home/keith/workspace/tradertips/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in
`const_missing'
  from ./test/functional/passwords_controller_test.rb:8
  from
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in
`load'
  from
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
  from
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in
`each'
  from
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
/usr/bin/ruby1.8 -I"lib:test"
"/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
Errors running test:units and test:functionals!

I'm assuming this might be a Clearance issue now?

Bumpety bump.....does anyone have any ideas about this? please?

thanks

Given that the error states that Clearance::Test is missing, I'd say a
Clearance issue is quite likely...

--Matt Jones

John Barnette wrote:
> I'd try relaxing your gem requirement (above), or manually installing
> cucumber 0.3.0, e.g.,

Thanks John, I went back and tried this and it did help resolve the
dependency issue, however i still find myself unable to run the tests:

~/code/tradertips(with_clearance) $ rake test
(in /home/keith/workspace/tradertips)
/usr/bin/ruby1.8 -I"lib:test"
"/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
"test/unit/clearance_mailer_test.rb" "test/unit/mailer_test.rb"
"test/unit/helpers/passwords_helper_test.rb"
"test/unit/helpers/users_helper_test.rb"
"test/unit/helpers/confirmations_helper_test.rb"
"test/unit/helpers/home_helper_test.rb"
"test/unit/helpers/invites_helper_test.rb"
"test/unit/helpers/sessions_helper_test.rb" "test/unit/user_test.rb"
"test/unit/invite_test.rb"
/home/keith/workspace/tradertips/vendor/rails/activesupport/lib/active_supp ort/dependencies.rb:443:in
`load_missing_constant': uninitialized constant Clearance::Test
(NameError)

[snip]

Matt Jones wrote:

Given that the error states that Clearance::Test is missing, I'd say a
Clearance issue is quite likely...

--Matt Jones

"/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
(NameError)

[snip]

Thanks for replying Matt, i've continued the questioning over in the
clearance google group so hopefully someone there can point me in the
right direction.