-
Notifications
You must be signed in to change notification settings - Fork 136
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 #562 from Shopify/uk-revert-bundler-change
- Loading branch information
Showing
3 changed files
with
18 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
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 |
---|---|---|
|
@@ -106,6 +106,18 @@ def fizz; end | |
refute_path_exists("#{outdir}/[email protected]") | ||
end | ||
|
||
it "must generate RBI for a default gem" do | ||
output = tapioca("gem did_you_mean") | ||
|
||
assert_includes(output, <<~OUTPUT) | ||
Processing 'did_you_mean' gem: | ||
Compiling did_you_mean, this may take a few seconds... Done | ||
OUTPUT | ||
|
||
did_you_mean_rbi_file = T.must(Dir.glob("#{outdir}/did_you_mean@*.rbi").first) | ||
assert_includes(File.read(did_you_mean_rbi_file), "module DidYouMean") | ||
end | ||
|
||
it "must generate gem RBI in correct output directory" do | ||
output = tapioca("gem foo", use_default_outdir: true) | ||
|
||
|