在 Windows 操作系统上的 Rubymine 3.1 中安装 Cucumber 时出现问题
我正在尝试在 Rails 3.0 ( RubyMine 3.1 ) 中安装黄瓜插件,但仍然无法安装它。我想安装 Cucumber,以便 RubyMine 3.1 IDE 可以选择生成 Cucumber,就像我们生成脚手架一样。
参考:
- https://github.com/rspec/rspec-rails
- https://github.com/derfred/plugin_with_rspec_generator
- https://github.com/dchelimsky/rspec/wiki/rails
提前致谢!
I am trying to install cucumber plugin in Rails 3.0 ( RubyMine 3.1), but still not able to install it. I want to install cucumber such that RubyMine 3.1 IDE will have the option of generating cucumber like we have generating scaffold.
Ref:
- https://github.com/rspec/rspec-rails
- https://github.com/derfred/plugin_with_rspec_generator
- https://github.com/dchelimsky/rspec/wiki/rails
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您安装了正确的 gem(rails、rspec、cucumber 等),您应该能够通过 RubyMine 运行 Rails 生成器。
Ctrl+Alt+G 应该会打开对话框窗口。之后,只需在动态下拉菜单中选择“生成器”选项即可。您将看到另一个对话框,询问您生成器选项。类型:
cucumber:install
。您应该能够在生成器菜单中找到cucumber:feature
选项希望这会有所帮助
Provided that you've got the proper gems installed (rails, rspec, cucumber, etc.), you should be able to run the rails generator via RubyMine.
Ctrl+Alt+G should get you the dialog window. After that, just select 'generator' option in the dynamic drop down menu. You'll get a another dialog asking you for the generator options. Type:
cucumber:install
. You should be able to find thecucumber:feature
option in the generator menuHope this helps