So i have a small update, having now removed all versions of cucumber 
from my machine using:

~/code/tradertips(with_clearance) $ sudo gem uninstall cucumber
[sudo] password for keith:

Select gem to uninstall:
 1. cucumber-0.3.6
 2. cucumber-0.3.11
 3. All versions
> 3

blah blah....

This allows me to run the install command:

~/code/tradertips(with_clearance) $ sudo rake gems:install 
RAILS_ENV=test
(in /home/keith/workspace/tradertips)
gem install cucumber --version "= 0.3.0"
Successfully installed cucumber-0.3.0
1 gem installed
Installing ri documentation for cucumber-0.3.0...
Installing RDoc documentation for cucumber-0.3.0...

Which only spits me out at this problem:

~/code/tradertips(with_clearance) $ rake test
(in /home/keith/workspace/tradertips)
rake aborted!
undefined method `fork=' for #<Cucumber::Rake::Task:0xb79b4be8>
/home/keith/workspace/tradertips/Rakefile:10
(See full trace by running task with --trace)

Which i assume is a dependency issue. So i re-install the lastest 
cucumber:

~/code/tradertips(with_clearance) $ sudo gem install cucumber
Successfully installed cucumber-0.3.11
1 gem installed
Installing ri documentation for cucumber-0.3.11...
Installing RDoc documentation for cucumber-0.3.11...


And try running tests again:

~/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/test_case.rb:6:
 
warning: already initialized constant Mocha
/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/test_case.rb:6:
 
warning: already initialized constant Mocha
/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!


So this is a different error, which may or may not be good, but i'm 
still no better off.

Any advice would be most welcome, thanks...

Am i doing something wrong here?

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to