无法在 Rails 2.3.5 中加载 rspec 生成器
我正在开发 Rails 2.3.5,我希望使用 Rspec
进行测试。我已经安装了 rspec gem,但无法在生成器列表中列出 rspec。我指的是 https://github.com/rspec/rspec-rails。
group :development, :test do gem "rspec", "~> 1.3" gem "rspec-rails", "~> 1.3" end
谢谢。
i am working on rails 2.3.5 where i want to us Rspec
for testing purpose. I have installed rspec gem but not able to list rspec in generator's list. I am referring https://github.com/rspec/rspec-rails.
group :development, :test do gem "rspec", "~> 1.3" gem "rspec-rails", "~> 1.3" end
Thanks.
如果您使用的是 Rails 2.3.5,则必须安装两个插件:
然后
检查 rspec 生成列表
请检查 https://github.com/dchelimsky/rspec/wiki/rails 了解更多详细信息。
希望这有帮助。
If you are on rails 2.3.5 you will have to install two plugins :
and
Then check the rspec generate list
Please check https://github.com/dchelimsky/rspec/wiki/rails for further details.
Hope this helps.