-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2db5af3
commit 006b822
Showing
1 changed file
with
4 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ module Foo | |
after do | ||
@project.remove!("sorbet/rbi/gems") | ||
@project.remove!("Gemfile.lock") | ||
$stdout.puts @project.exec("ls -a") | ||
end | ||
|
||
it "creates the RBI for a newly added gem" do | ||
|
@@ -103,6 +104,7 @@ module Foo | |
end | ||
|
||
it "deletes untracked RBI files" do | ||
$stdout.puts @project.exec("git log --oneline") | ||
@project.bundle_install! | ||
FileUtils.mkdir_p("#{@project.absolute_path}/sorbet/rbi/gems") | ||
# Create an untracked RBI file | ||
|
@@ -124,6 +126,7 @@ module Foo | |
@project.exec("git add sorbet/rbi/gems/[email protected]") | ||
@project.exec("git commit -m 'Add foo RBI'") | ||
FileUtils.rm("#{@project.absolute_path}/sorbet/rbi/gems/[email protected]") | ||
$stdout.puts @project.exec("git log --oneline") | ||
|
||
refute_project_file_exist("sorbet/rbi/gems/[email protected]") | ||
|
||
|
@@ -134,6 +137,7 @@ module Foo | |
|
||
# Clean-up commit | ||
@project.exec("git reset --hard HEAD^") | ||
$stdout.puts @project.exec("git log --oneline") | ||
end | ||
end | ||
end | ||
|