-
Notifications
You must be signed in to change notification settings - Fork 133
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
b0ab3d6
commit 586bb12
Showing
1 changed file
with
7 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -19,22 +19,28 @@ module Foo | |
end | ||
|
||
after do | ||
ENV["BUNDLE_GEMFILE"] = nil | ||
project.write_gemfile!(project.tapioca_gemfile) | ||
@project.require_default_gems | ||
project.remove!("sorbet/rbi") | ||
project.remove!("../gems") | ||
project.remove!(".git") | ||
project.remove!("sorbet/tapioca/require.rb") | ||
project.remove!("config/application.rb") | ||
project.remove!(".bundle") | ||
project.remove!("Gemfile.lock") | ||
ensure | ||
@project.remove!("output") | ||
end | ||
|
||
def setup_git_repo | ||
@project.exec("git init") | ||
@project.exec("git config user.email '[email protected]'") | ||
@project.exec("git config user.name 'Test User'") | ||
@project.exec("touch Gemfile.lock") | ||
FileUtils.mkdir_p("#{@project.absolute_path}/sorbet/rbi/gems") | ||
@project.exec("git add . && git commit -m 'Initial commit'") | ||
@project.exec("git add .") | ||
@project.exec("git commit -m 'Initial commit'") | ||
end | ||
|
||
it "does nothing if there is no git repo" do | ||
|