-
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.
Add a test covering a transitive dependency that is shared with an ex…
…cluded gem
- Loading branch information
Showing
2 changed files
with
13 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -780,21 +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", dependencies: ["actionpack"])) | ||
@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_exist("sorbet/rbi/gems/actionpack@7.0.6.rbi") | ||
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) | ||
|