2012-01-25 3 views
4

나는 발전기를 찾을 수 없다는 것을 모른다.레일 - 발전기를 찾을 수 없습니다 rspec : install.

gem install rspec 
Fetching: rspec-core-2.8.0.gem (100%) 
Fetching: rspec-expectations-2.8.0.gem (100%) 
Fetching: rspec-mocks-2.8.0.gem (100%) 
Fetching: rspec-2.8.0.gem (100%) 
Successfully installed rspec-core-2.8.0 
Successfully installed rspec-expectations-2.8.0 
Successfully installed rspec-mocks-2.8.0 
Successfully installed rspec-2.8.0 
4 gems installed 
Installing ri documentation for rspec-core-2.8.0... 
Installing ri documentation for rspec-expectations-2.8.0... 
Installing ri documentation for rspec-mocks-2.8.0... 
Installing ri documentation for rspec-2.8.0... 
Installing RDoc documentation for rspec-core-2.8.0... 
Installing RDoc documentation for rspec-expectations-2.8.0... 
Installing RDoc documentation for rspec-mocks-2.8.0... 
Installing RDoc documentation for rspec-2.8.0... 

$bundle install 
... 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. 
$ script/rails generate rspec:install 
Could not find generator rspec:install. 

답변

9

나는 당신의 Gemfile에 다음을 추가합니다, 나는 당신이 RSpec에 레일 보석을 놓치고있어 생각합니다.

group :development, :test do 
     gem "rspec-rails" 
    end 
관련 문제