My enviorenment:
**Rails - 2.3.14
Ruby - ree/ruby 1.8.7**
我第一次尝试使用黄瓜。对于我现有的项目,我关注了 => http://railscasts.com/episodes/155-beginning-with-cucumber 。
I have executed the **bold** commnads but it is giving the below mentioned error though I have rspec-core,rack-test & i18n latest version in my system:
==============================================================================
**rvmsudo rake gems:unpack RAILS_ENV=test**
[sudo] password for ilfs:
(in /home/ilfs/work/ces)
Please install RDoc 2.4.2+ to generate documentation.
DEPRECATION WARNING: Rake tasks in vendor/plugins/TBD_ prawnto/tasks, vendor/plugins/jrails/tasks, and vendor/plugins/online_help/tasks are deprecated. Use lib/tasks instead. (called from /home/ilfs/.rvm/gems/ree-1.8.7-2012.02@ces/gems/rails-2.3.14/lib/tasks/rails.rb:10)
gem install rspec --version ">= 1.2.2"
ERROR: Error installing rspec:
rspec requires rspec-core (~> 2.11.0)
gem install rspec-rails --version ">= 1.2.2"
ERROR: Error installing rspec-rails:
activesupport requires i18n (~> 0.6)
gem install webrat --version ">= 0.4.3"
ERROR: Error installing webrat:
webrat requires rack-test (>= 0.5.3)
rake aborted!
undefined method `version' for nil:NilClass
(See full trace by running task with --trace)
============================================================================
ilfs@ilfs:~/work/ces$ **rvmsudo rake gems:unpack:dependencies RAILS_ENV=test**
(in /home/ilfs/work/ces)
Please install RDoc 2.4.2+ to generate documentation.
DEPRECATION WARNING: Rake tasks in vendor/plugins/TBD_ prawnto/tasks, vendor/plugins/jrails/tasks, and vendor/plugins/online_help/tasks are deprecated. Use lib/tasks instead. (called from /home/ilfs/.rvm/gems/ree-1.8.7-2012.02@ces/gems/rails-2.3.14/lib/tasks/rails.rb:10)
gem install rspec --version ">= 1.2.2"
ERROR: Error installing rspec:
rspec requires rspec-core (~> 2.11.0)
gem install rspec-rails --version ">= 1.2.2"
ERROR: Error installing rspec-rails:
activesupport requires i18n (~> 0.6)
gem install webrat --version ">= 0.4.3"
ERROR: Error installing webrat:
webrat requires rack-test (>= 0.5.3)
rake aborted!
undefined method `version' for nil:NilClass
(See full trace by running task with --trace)
==================================================================================
这是我第一次尝试使用黄瓜,除了 rails cast video 的概念之外,我不知道它。由于我的系统尚未配置,所以我无法测试任何东西。
Expecting help -
Thanks in advance
Sumanta