Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scan_for_focus_path should return an empty array if path is a directory #7

Merged
merged 1 commit into from
Jan 7, 2013

Conversation

martco
Copy link

@martco martco commented Jan 4, 2013

Screen Shot 2013-01-04 at 1 52 46 PM

When I have set the focus_on option, and I run all feature tests in cucumber-guard, then a directory path may be sent to Focuser#scan_for_focus_path. This method tries to call File#gets on the directory, and ruby throws a "Is a directory" error.

This patch simply returns an empty array if the file is a directory.

When I have set `focus_on`, and I run all tests, then a directory path may be sent to Focuser#scan_for_focus_path. This method tries to call File#gets on the path, and ruby throws a "Is a directory" error.

This patch simply returns an empty array if the file is a directory.
netzpirat added a commit that referenced this pull request Jan 7, 2013
scan_for_focus_path should return an empty array if path is a directory
@netzpirat netzpirat merged commit 67b2c78 into guard:master Jan 7, 2013
@netzpirat
Copy link

Great work, thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants