Domanda

Sono attualmente in esecuzione rubino 1.9.1 installato tramite RVM. Sono stato a guardare utilizzando Merb, ma quando provo ed eseguirlo ottengo questo errore:

  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)

Ho installato RSpec, ma anche in IRB che non può richiedere 'spec / rake / spectask' a meno che anche installare RSpec-rail (che ora ho fatto).

Tutte le idee dove potrei anche iniziare?

Saluti, Sam

È stato utile?

Soluzione 2

Dopo 2 settimane ho finalmente capito tutto!

Modifica il tuo Gemfile e aggiungere la riga:

gem "rspec", :require => "spec"

e sei lontano!

Altri suggerimenti

Ho avuto lo stesso problema con questo on Rails 2.3.5. Ho finito per dover disinstallare RSpec 2.0 e installare RSpec 1.3.0 invece.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top