ruby-on-rails – rails – 找不到生成器rspec:install.
发布时间:2020-12-17 03:45:53 所属栏目:百科 来源:网络整理
导读:我不知道它找不到发电机. gem install rspecFetching: 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.0Success
我不知道它找不到发电机.
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. 解决方法
我会将以下内容添加到您的Gemfile中,我认为您错过了rspec-rails gem.
group :development,:test do gem "rspec-rails" end (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |