Skip to content

Commit

Permalink
wip test logging git log
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrocha committed Jan 15, 2025
1 parent 2db5af3 commit 006b822
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/tapioca/ruby_lsp/run_gem_rbi_check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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]")

Expand All @@ -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
Expand Down

0 comments on commit 006b822

Please sign in to comment.