From a3eb0d3d76995d2f1eef19faccd0759ec5f2c24f Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 13 Jul 2024 13:52:44 +0200 Subject: [PATCH] Fix CI issue with test failing --- bin/specs | 2 +- spec/popups/commit_popup_spec.rb | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/specs b/bin/specs index bdbc363b..912eb4a5 100755 --- a/bin/specs +++ b/bin/specs @@ -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 ) diff --git a/spec/popups/commit_popup_spec.rb b/spec/popups/commit_popup_spec.rb index 4a9406c6..b4d30605 100644 --- a/spec/popups/commit_popup_spec.rb +++ b/spec/popups/commit_popup_spec.rb @@ -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!q") + nvim.keys("reworded!:wq") 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!q") + nvim.keys("amended!:wq") 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