diff options
Diffstat (limited to 'Library/Homebrew/test/cmd/search_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/cmd/search_spec.rb | 12 | 
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Homebrew/test/cmd/search_spec.rb b/Library/Homebrew/test/cmd/search_spec.rb index 06b7073d8..77c2c6352 100644 --- a/Library/Homebrew/test/cmd/search_spec.rb +++ b/Library/Homebrew/test/cmd/search_spec.rb @@ -1,6 +1,7 @@  describe "brew search", :integration_test do    before(:each) do      setup_test_formula "testball" +    setup_remote_tap "caskroom/cask"    end    it "lists all available Formulae when no argument is given" do @@ -13,7 +14,7 @@ describe "brew search", :integration_test do    it "supports searching by name" do      expect { brew "search", "testball" }        .to output(/testball/).to_stdout -      .and not_to_output.to_stderr +      .and output(/Searching/).to_stderr        .and be_a_success    end @@ -24,6 +25,13 @@ describe "brew search", :integration_test do        .and be_a_success    end +  it "falls back to a GitHub tap search when no formula is found", :needs_network do +    expect { brew "search", "caskroom/cask/firefox" } +      .to output(/firefox/).to_stdout +      .and output(/Searching/).to_stderr +      .and be_a_success +  end +    describe "--desc" do      let(:desc_cache) { HOMEBREW_CACHE/"desc_cache.json" } @@ -44,7 +52,7 @@ describe "brew search", :integration_test do      "fink" => "http://pdb.finkproject.org/pdb/browse.php?summary=testball",      "debian" => "https://packages.debian.org/search?keywords=testball&searchon=names&suite=all§ion=all",      "opensuse" => "https://software.opensuse.org/search?q=testball", -    "fedora" => "https://admin.fedoraproject.org/pkgdb/packages/%2Atestball%2A/", +    "fedora" => "https://apps.fedoraproject.org/packages/s/testball",      "ubuntu" => "http://packages.ubuntu.com/search?keywords=testball&searchon=names&suite=all§ion=all",    }.each do |flag, url|      specify "--#{flag}" do  | 
