-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2096 from rzane/rzane/exclude-should-ignore-trans…
…itive-dependencies `--exclude` should also exclude transitive dependencies
- Loading branch information
Showing
4 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -780,19 +780,23 @@ class Secret; end | |
|
||
it "must respect exclude option" do | ||
@project.require_mock_gem(mock_gem("foo", "0.0.1")) | ||
@project.require_mock_gem(mock_gem("bar", "0.3.0")) | ||
@project.require_mock_gem(mock_gem("baz", "0.0.2")) | ||
@project.require_mock_gem(mock_gem("bar", "0.3.0", dependencies: ["activemodel", "actionpack"])) | ||
@project.require_mock_gem(mock_gem("baz", "0.0.2", dependencies: ["activemodel"])) | ||
@project.bundle_install! | ||
|
||
result = @project.tapioca("gem --all --exclude foo bar") | ||
|
||
refute_includes(result.out, "Compiled bar") | ||
refute_includes(result.out, "Compiled actionpack") | ||
assert_stdout_includes(result, "Compiled baz") | ||
assert_stdout_includes(result, "Compiled activemodel") | ||
refute_includes(result.out, "Compiled foo") | ||
|
||
refute_project_file_exist("sorbet/rbi/gems/[email protected]") | ||
refute_project_file_exist("sorbet/rbi/gems/[email protected]") | ||
refute_project_file_match("sorbet/rbi/gems/actionpack@*.rbi") | ||
assert_project_file_exist("sorbet/rbi/gems/[email protected]") | ||
assert_project_file_match("sorbet/rbi/gems/activemodel@*.rbi") | ||
|
||
assert_empty_stderr(result) | ||
assert_success_status(result) | ||
|