Skip to content
Snippets Groups Projects
Commit eb6fe001 authored by Markus Reiter's avatar Markus Reiter
Browse files

Convert `brew sh` test to spec.

parent c7121f6b
No related branches found
No related tags found
No related merge requests found
describe "brew sh", :integration_test do
it "runs a shell with the Homebrew environment" do
expect { brew "sh", "SHELL" => which("true") }
.to output(/Your shell has been configured/).to_stdout
.and not_to_output.to_stderr
.and be_a_success
end
end
require "testing_env"
class IntegrationCommandTestSh < IntegrationCommandTestCase
def test_sh
assert_match "Your shell has been configured",
cmd("sh", "SHELL" => which("true"))
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