blob: 6c8d7dea698d5ad9ffcf9ea9b29bd51419af4269 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
describe "brew --cellar", :integration_test do
it "print the location of Homebrew's Cellar when no argument is given" do
expect { brew "--cellar" }
.to output("#{HOMEBREW_CELLAR}\n").to_stdout
.and not_to_output.to_stderr
.and be_a_success
end
it "returns the Cellar subdirectory for a given Formula" do
expect { brew "--cellar", testball }
.to output(%r{#{HOMEBREW_CELLAR}/testball}).to_stdout
.and not_to_output.to_stderr
.and be_a_success
end
end
|