aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2017-02-13 08:32:35 +0000
committerGitHub2017-02-13 08:32:35 +0000
commit7281cfaf63e45f8e4e46340d724926d0adbd7ccc (patch)
tree81bbc9a5eccdcea6fba7a214ad470a4b3a0a3dbd /Library/Homebrew/test
parentcfc90af3cbdcc84c3aef0121cd00e89798bf28c8 (diff)
parent588f98cf825be855782ec00272f8d7e691d37c69 (diff)
downloadbrew-7281cfaf63e45f8e4e46340d724926d0adbd7ccc.tar.bz2
Merge pull request #1972 from timotheecour/pr_brew_where_command
add `brew formula` command to show location of a formula
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/formula_cmd_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/test/formula_cmd_test.rb b/Library/Homebrew/test/formula_cmd_test.rb
new file mode 100644
index 000000000..abbe42d98
--- /dev/null
+++ b/Library/Homebrew/test/formula_cmd_test.rb
@@ -0,0 +1,8 @@
+require "testing_env"
+
+class IntegrationCommandTestFormula < IntegrationCommandTestCase
+ def test_formula
+ formula_file = setup_test_formula "testball"
+ assert_equal formula_file.to_s, cmd("formula", "testball")
+ end
+end