Convert brew info
test to spec.
This commit is contained in:
parent
c7121f6be5
commit
f955f8d384
10
Library/Homebrew/test/cmd/info_spec.rb
Normal file
10
Library/Homebrew/test/cmd/info_spec.rb
Normal 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
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user