Skip to content
代码片段 群组 项目
未验证 提交 7cda54c2 编辑于 作者: Andreas Brandl's avatar Andreas Brandl
浏览文件

Make spring a runtime option for Guard

上级 09d8ae14
No related branches found
No related tags found
无相关合并请求
......@@ -2,8 +2,9 @@
# More info at https://github.com/guard/guard#readme
# If using spring, change command to "spring rspec"
guard :rspec, cmd: "bundle exec rspec" do
cmd = ENV['SPRING'] ? 'spring rspec' : 'bundle exec rspec'
guard :rspec, cmd: cmd do
require "guard/rspec/dsl"
dsl = Guard::RSpec::Dsl.new(self)
......
......@@ -50,13 +50,7 @@ Use [guard](https://github.com/guard/guard) to continuously monitor for changes
bundle exec guard
```
When using spring and guard together, consider adjusting Guardfile:
```ruby
guard :rspec, cmd: "spring rspec" do
# ...
end
```
When using spring and guard together, use `SPRING=1 bundle exec guard` instead to make use of spring.
### General guidelines
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册