• 在rubymine里新建Rails application

  • 找到Gemfile文件,按照下图添加gem ‘rspec’ 和gem ‘rspec-rails’

  • 执行bundle install

  • 找到Tools菜单里的Run rails Script

运行完之后

  • 测试

    • 如下图所示,在spec下新建test目录,再在test中新建hello.rb文件

Hello.rb文件代码:

    • 按下图方式建立Rspec Test Template文件

test_hello_spec.rb文件代码:

  • 运行截图:

最新文章

  1. git 撤销提交的文件
  2. 三、jQuery--jQuery基础--jQuery基础课程--第3章 jQuery过滤性选择器
  3. 安装配置hive中遇到的问题
  4. js实现继承
  5. install keepalived on RedHat/CentOS to provide IP failover for web cluster
  6. FiddlerScript修改特定请求参数下的返回值
  7. linux设备驱动归纳总结(八):1.总线、设备和驱动【转】
  8. url重写(伪静态)IIS配置图解
  9. CI框架多目录设置
  10. .net 基础之截取字符串
  11. Windows常用的一些DOS下的CMD命令整理
  12. Developing Vert.x Modules using the Standard Project
  13. 为二级域名注册ssl证书,并强制使用https对http进行跳转
  14. darknet优化经验-AlexeyAB大神经验
  15. GIt如何安装使用
  16. 论文笔记之:DualGAN: Unsupervised Dual Learning for Image-to-Image Translation
  17. 使用路由和远程访问服务为Hyper-V中虚拟机实现NAT上网
  18. MingW-v4.8.0+EDE-v13.04 配置使用C语言图形库
  19. Vue--- 手动禁止ESlint
  20. UVA-1153 Keep the Customer Satisfied (贪心)

热门文章

  1. bzoj 1180: [CROATIAN2009]OTOCI【LCT】
  2. SS上网配置(Window 7/8/10 )详解
  3. [CF1076G] Array Game
  4. [Usaco2005]Part Acquisition
  5. codeforces 555B Case of Fugitive
  6. sed简单脚本练习
  7. android开发学习——This support library should not use a different version
  8. Android开发学习——android与服务器端数据交互
  9. [翻译] API测试最佳实践 - 身份验证(Authentication)
  10. 摘:关于php调用.net的web service 踩过的坑