File tree Expand file tree Collapse file tree 5 files changed +44
-2
lines changed
Library/Homebrew/test/cmd Expand file tree Collapse file tree 5 files changed +44
-2
lines changed Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ RSpec . describe "brew casks" , type : :system do
4
+ it "prints all installed Casks" , :integration_test do
5
+ expect { brew_sh "casks" }
6
+ . to be_a_success
7
+ . and not_to_output . to_stderr
8
+ end
9
+ end
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ RSpec . describe "brew formulae" , type : :system do
4
+ it "prints all installed Formulae" , :integration_test do
5
+ expect { brew_sh "formulae" }
6
+ . to be_a_success
7
+ . and not_to_output . to_stderr
8
+ end
9
+ end
Original file line number Diff line number Diff line change 8
8
9
9
it_behaves_like "parseable arguments"
10
10
11
- it "prints all installed Formulae " , :integration_test do
11
+ it "prints all installed formulae " , :integration_test do
12
12
formulae . each do |f |
13
13
( HOMEBREW_CELLAR /f /"1.0/somedir" ) . mkpath
14
14
end
19
19
. and be_a_success
20
20
end
21
21
22
- # TODO: add a test for the shell fast-path (`brew_sh`)
22
+ it "prints all installed formulae and casks" , :integration_test do
23
+ expect { brew_sh "list" }
24
+ . to be_a_success
25
+ . and not_to_output . to_stderr
26
+ end
23
27
end
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ RSpec . describe "brew setup-ruby" , type : :system do
4
+ it "installs and configures Homebrew's Ruby" , :integration_test do
5
+ expect { brew_sh "setup-ruby" }
6
+ . to output ( "" ) . to_stdout
7
+ . and not_to_output . to_stderr
8
+ . and be_a_success
9
+ end
10
+ end
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ RSpec . describe "brew shellenv" , type : :system do
4
+ it "prints export statements" , :integration_test do
5
+ expect { brew_sh "shellenv" }
6
+ . to output ( /.*/ ) . to_stdout
7
+ . and not_to_output . to_stderr
8
+ . and be_a_success
9
+ end
10
+ end
You can’t perform that action at this time.
0 commit comments