mercredi 30 mai 2018

How do I write test for homebrew formula?

I made an homebrew formula which is now accessible only on my local taps. I want to send pull request to homebrew-core. Now I am required to write test for my formula. How to write that based on example below?

test do
  output = shell_output("#{bin}/balance 2>&1", 64)
  assert_match "this is balance #{version}", output
end

Aucun commentaire:

Enregistrer un commentaire