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

Issue I encountered with install #721

Merged
merged 3 commits into from Mar 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions 02-intermediate-ruby/testing-with-guard.md
Expand Up @@ -19,6 +19,26 @@ Before we can use Guard to automatically run our tests while we work on projects
$ gem install guard guard-minitest
```

### If you get an error

If you get the error:

```bash
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h
```

This could be because your mac is on version [10.14](https://github.com/castwide/vscode-solargraph/issues/78).

You may need to run:

```bash
$ open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
```

Then try to reinstall guard.

### After installing guard

After we've got Guard installed, we can start it by running the `guard` command in a terminal. Leave this terminal window open while you work, and Guard will display the results of your tests whenever they are re-run automatically.

_Important_: You need to run `guard` from the "root" directory for the project (the directory which has the `Guardfile`).
Expand Down