Merge pull request #7556 from dfabulich/formula-formatting
Fix formatting issue in Formula Cookbook
This commit is contained in:
commit
6b6efc5c80
@ -280,6 +280,7 @@ A good example is [`tinyxml2`](https://github.com/Homebrew/homebrew-core/blob/ma
|
|||||||
* If the software cannot function without credentials or requires a virtual machine, docker instance, etc. to run, a test could be to try to connect with invalid credentials (or without credentials) and confirm that it fails as expected.
|
* If the software cannot function without credentials or requires a virtual machine, docker instance, etc. to run, a test could be to try to connect with invalid credentials (or without credentials) and confirm that it fails as expected.
|
||||||
* Homebrew comes with a number of [standard test fixtures](https://github.com/Homebrew/brew/tree/master/Library/Homebrew/test/support/fixtures), including numerous sample images, sounds, and documents in various formats. You can get the file path to a test fixture with `test_fixtures("test.svg")`.
|
* Homebrew comes with a number of [standard test fixtures](https://github.com/Homebrew/brew/tree/master/Library/Homebrew/test/support/fixtures), including numerous sample images, sounds, and documents in various formats. You can get the file path to a test fixture with `test_fixtures("test.svg")`.
|
||||||
* If your test requires a test file that isn't a standard test fixture, you can install it from a source repository during the `test` phase with a resource block, like this:
|
* If your test requires a test file that isn't a standard test fixture, you can install it from a source repository during the `test` phase with a resource block, like this:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
resource("testdata") do
|
resource("testdata") do
|
||||||
url "https://example.com/input.foo"
|
url "https://example.com/input.foo"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user