brew/Library/Homebrew/test/cmd/home_spec.rb
Mike McQuaid 49d2d7b94d home_spec: use different test formula.
Instead of `testball` use a formula named `testballhome` to avoid this
clashing with any other formula named testball.
2017-09-07 19:18:03 +01:00

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