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

Merge pull request #2136 from reitermarkus/spec-tap-new

Convert `brew tap-new` test to spec.
parents 1d813759 782a7d00
No related branches found
No related tags found
No related merge requests found
describe "brew tap-new", :integration_test do
it "initializes a new Tap with a ReadMe file" do
expect { brew "tap-new", "homebrew/foo", "--verbose" }
.to be_a_success
.and not_to_output.to_stdout
.and not_to_output.to_stderr
expect(HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo/README.md").to exist
end
end
require "testing_env"
class IntegrationCommandTestTapNew < IntegrationCommandTestCase
def test_tap_readme
assert_equal "", cmd("tap-new", "homebrew/foo", "--verbose")
readme = HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo/README.md"
assert readme.exist?, "The README should be created"
end
end
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