Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
143 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Feature: ignore files and directories | ||
|
||
In order to receive only relevant changes | ||
As a user | ||
I want to specify which files and directories to ignore globally | ||
|
||
Background: Guard is installed through bundler | ||
Given Guard is bundled using source | ||
|
||
@spawn | ||
Scenario: Ignore events matching ignore regexp | ||
Given my Guardfile contains: | ||
""" | ||
require 'guard/plugin' | ||
ignore /bar/ | ||
module ::Guard | ||
class Myplugin < Plugin | ||
def run_on_additions(files) | ||
$stdout.puts "Files added: #{files.inspect}" | ||
$stdout.flush | ||
end | ||
end | ||
end | ||
guard(:myplugin) { watch(/ba/) } | ||
""" | ||
Given I start `bundle exec guard -n f` | ||
And I create a file "baz" | ||
And I create a file "bar" | ||
And I wait for Guard to become idle | ||
And I stop guard | ||
Then the output should match /Files added: \["baz"\]/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters