Convert brew info test to spec.

This commit is contained in:
Markus Reiter 2017-02-23 06:06:48 +01:00
parent c7121f6be5
commit f955f8d384
2 changed files with 10 additions and 9 deletions

View File

@ -0,0 +1,10 @@
describe "brew info", :integration_test do
it "prints information about a given Formula" do
setup_test_formula "testball"
expect { brew "info", "testball" }
.to output(/testball: stable 0.1/).to_stdout
.and not_to_output.to_stderr
.and be_a_success
end
end

View File

@ -3,15 +3,6 @@ require "cmd/info"
require "formula" require "formula"
require "testing_env" require "testing_env"
class IntegrationCommandTestInfo < IntegrationCommandTestCase
def test_info
setup_test_formula "testball"
assert_match "testball: stable 0.1",
cmd("info", "testball")
end
end
class InfoCommandTests < Homebrew::TestCase class InfoCommandTests < Homebrew::TestCase
def test_github_remote_path def test_github_remote_path
remote = "https://github.com/Homebrew/homebrew-core" remote = "https://github.com/Homebrew/homebrew-core"