diff options
| author | Markus Reiter | 2016-09-25 16:00:34 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-25 16:27:43 +0200 |
| commit | 50b635e276bb61b770e8437830785d86247c5342 (patch) | |
| tree | 4cfa2638d45e4d280372db8852ce675ba6f27c8c /Library | |
| parent | e5274c0d8103006e06351f18155b89c65ee7fe5d (diff) | |
| download | brew-50b635e276bb61b770e8437830785d86247c5342.tar.bz2 | |
Add test for `search_tap`.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_search_remote_tap.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_search_remote_tap.rb b/Library/Homebrew/test/test_search_remote_tap.rb new file mode 100644 index 000000000..9dd9ee654 --- /dev/null +++ b/Library/Homebrew/test/test_search_remote_tap.rb @@ -0,0 +1,19 @@ +require "testing_env" +require "cmd/search" + +class SearchRemoteTapTests < Homebrew::TestCase + def test_search_remote_tap + json_response = { + "tree" => [ + { + "path" => "Formula/not-a-formula.rb", + "type" => "blob", + }, + ], + } + + GitHub.stubs(:open).yields(json_response) + + assert_equal ["homebrew/not-a-tap/not-a-formula"], Homebrew.search_tap("homebrew", "not-a-tap", "not-a-formula") + end +end |
