Fix CI issue with test failing

This commit is contained in:
Cameron 2024-07-13 13:52:44 +02:00
parent c73993c1c6
commit a3eb0d3d76
No known key found for this signature in database
GPG key ID: 7998CB3EA6CE5CBC
2 changed files with 4 additions and 5 deletions

View file

@ -28,7 +28,7 @@ tests = Dir["spec/**/*_spec.rb"]
length = tests.max_by(&:size).size
spinners = TTY::Spinner::Multi.new(
COLOR.blue(":spinner Running #{tests.size} tests"),
COLOR.blue(":spinner Running #{tests.size} specs"),
format: :bouncing_ball,
hide_cursor: true
)

View file

@ -65,7 +65,7 @@ RSpec.describe "Commit Popup", :git, :nvim do
it "Opens editor to reword a commit" do
nvim.keys("cw")
nvim.keys("cc")
nvim.keys("reworded!<esc>q")
nvim.keys("reworded!<esc>:w<cr>q")
expect(git.log(1).entries.first.message).to eq("reworded!")
end
end
@ -95,10 +95,10 @@ RSpec.describe "Commit Popup", :git, :nvim do
nvim.move_to_line "example.txt"
nvim.keys("sca")
nvim.keys("cc")
nvim.keys("amended!<esc>q")
nvim.keys("amended!<esc>:w<cr>q")
expect(git.log(1).entries.first.message).to eq("amended!")
expect(git.log(1).entries.first.diff_parent.patch).to eq(<<~DIFF.strip
expect(git.log(1).entries.first.diff_parent.patch).to eq <<~DIFF.strip
diff --git a/example.txt b/example.txt
deleted file mode 100644
index cfbe699..0000000
@ -109,7 +109,6 @@ RSpec.describe "Commit Popup", :git, :nvim do
-goodbye, space
\\ No newline at end of file
DIFF
)
end
end
# describe "Fixup" do