mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

Instead of `testball` use a formula named `testballhome` to avoid this clashing with any other formula named testball.
18 lines
576 B
Ruby
18 lines
576 B
Ruby
describe "brew home", :integration_test do
|
|
it "opens the Homebrew homepage when no argument is given" do
|
|
expect { brew "home", "HOMEBREW_BROWSER" => "echo" }
|
|
.to output("#{HOMEBREW_WWW}\n").to_stdout
|
|
.and not_to_output.to_stderr
|
|
.and be_a_success
|
|
end
|
|
|
|
it "opens the homepage for a given Formula" do
|
|
setup_test_formula "testballhome"
|
|
|
|
expect { brew "home", "testballhome", "HOMEBREW_BROWSER" => "echo" }
|
|
.to output("#{Formula["testballhome"].homepage}\n").to_stdout
|
|
.and not_to_output.to_stderr
|
|
.and be_a_success
|
|
end
|
|
end
|