Skip to content
Snippets Groups Projects
Commit 069cf219 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #2114 from reitermarkus/spec-info

Convert `brew info` test to spec.
parents cdf9a0dd f955f8d3
No related branches found
No related tags found
No related merge requests found
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
......@@ -3,15 +3,6 @@ require "cmd/info"
require "formula"
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
def test_github_remote_path
remote = "https://github.com/Homebrew/homebrew-core"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment