我目前运行的是通过RVM安装的ruby-1.9.1。我一直在考虑使用Merb,但当我尝试运行它时,我得到了这个错误:
sam@shiny-dev:~/Projects/mojo$ rake db:migrate
(in /home/sam/Projects/mojo)
Merb root at: /home/sam/Projects/mojo
/home/sam/.rvm/gems/ruby-1.9.1-p378@merb/gems/dm-validations-1.0.0/lib/dm-validations.rb:33: warning: already initialized constant OrderedHash
Loading init file from ./config/init.rb
Loading ./config/environments/development.rb
rake aborted!
no such file to load -- spec/rake/spectask
/home/sam/Projects/mojo/Rakefile:24:in `require'
(See full trace by running task with --trace)我已经安装了rspec,但即使在IRB中,我也不能要求'spec/rake/spectask‘,除非我还安装了rspec-rails (我现在已经安装了)。
你知道我该从哪里开始吗?
干杯,山姆
发布于 2010-08-14 13:28:55
两周后,我终于弄明白了!
编辑Gemfile并添加行:
gem "rspec", :require => "spec"而你却离开了!
发布于 2010-10-18 20:19:14
我在Rails 2.3.5上遇到了同样的问题。我最终不得不卸载RSpec 2.0,转而安装RSpec 1.3.0。
https://stackoverflow.com/questions/3438424
复制相似问题