diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae9acf6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +steps_output.txt \ No newline at end of file diff --git a/Formula/bart.rb b/Formula/bart.rb index 928915d..a8b49c0 100644 --- a/Formula/bart.rb +++ b/Formula/bart.rb @@ -28,6 +28,6 @@ def install end test do - assert_match "bart 0.9.0", shell_output("#{bin}/bart --version") + assert shell_output("#{bin}/bart --version").start_with?("bart #{version}") end end diff --git a/Formula/spin.rb b/Formula/spin.rb index e1e6756..4a4f088 100644 --- a/Formula/spin.rb +++ b/Formula/spin.rb @@ -40,6 +40,6 @@ def post_install end test do - system "#{bin}/spin", "--version" + assert shell_output("#{bin}/spin --version").start_with?("spin #{version}") end end diff --git a/README.md b/README.md index 6c78ea7..69de52b 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,12 @@ ## Documentation `brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh). + +## Contributing + +Contributors are encouraged to run Homebrew's test-bot locally before submitting +a pull request. + +```sh +brew test-bot --only-tap-syntax +```