mirror of
https://github.com/TimUntersberger/neogit
synced 2024-09-08 02:25:52 +02:00
Fix CI issue with test failing
This commit is contained in:
parent
c73993c1c6
commit
a3eb0d3d76
2 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue