Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (19 sloc) 0.571 kb
#guard + rspec 自动化测试配置
#在Gemfile添加如下内容
group :test do
gem 'rspec-rails', '2.6.1'
gem 'database_cleaner', '0.6.7'
gem 'rb-fsevent', '0.4.2'
gem 'guard-rspec', '0.4.0'
gem 'guard-spork', '0.2.1'
gem 'growl' #mac's notify
gem 'libnotify', '0.5.7'
#gem 'rb-inotify', '0.8.6' #ubuntu's notify
end
bundle update
#安装rspec
rails g rspec:install
#rspec关联guard,生成对rspec自动运行测试的规则
guard init rspec
#开启自动化测试监控
guard #如果该命令实效请使用:bundle exec guard
Jump to Line
Something went wrong with that request. Please try again.