Skip to content

Commit

Permalink
Merge pull request #39 from hakanensari/patch
Browse files Browse the repository at this point in the history
Link to explanation of group method
  • Loading branch information
yujinakayama committed Dec 11, 2017
2 parents 191c5c9 + 568ade9 commit 4825acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ you might be uncomfortable with the offense reports from RuboCop in the red-gree
* In the red-green phase, you're not necessarily required to write clean code – you just focus writing code to pass the test. It means, in this phase, `guard-rspec` should be run but `guard-rubocop` should not.
* In the refactor phase, you're required to make the code clean while keeping the test passing. In this phase, both `guard-rspec` and `guard-rubocop` should be run.

In this case, you may think the following `Guardfile` structure useful:
In this case, you may consider making use of the [group method](https://github.com/guard/guard/wiki/Guardfile-DSL---Configuring-Guard#group) in your `Guardfile`:

```ruby
# This group allows to skip running RuboCop when RSpec failed.
Expand Down

0 comments on commit 4825acd

Please sign in to comment.