From 21f09a760f5df0bd14028cfad5bfc8361d099f4f Mon Sep 17 00:00:00 2001 From: Mashhur Date: Fri, 31 Oct 2025 15:36:25 -0700 Subject: [PATCH] Fixes the buftok spec failures caused by BufferTokenizer changes. --- spec/filewatch/buftok_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/filewatch/buftok_spec.rb b/spec/filewatch/buftok_spec.rb index c27cccb..4e43335 100644 --- a/spec/filewatch/buftok_spec.rb +++ b/spec/filewatch/buftok_spec.rb @@ -5,13 +5,13 @@ context "when using the default delimiter" do it "splits the lines correctly" do - expect(subject.extract("hello\nworld\n")).to eq ["hello", "world"] + expect(subject.extract("hello\nworld\n").to_a).to eq ["hello", "world"] end it "holds partial lines back until a token is found" do buffer = described_class.new - expect(buffer.extract("hello\nwor")).to eq ["hello"] - expect(buffer.extract("ld\n")).to eq ["world"] + expect(buffer.extract("hello\nwor").to_a).to eq ["hello"] + expect(buffer.extract("ld\n").to_a).to eq ["world"] end end @@ -19,7 +19,7 @@ subject { FileWatch::BufferedTokenizer.new("\r\n") } it "splits the lines correctly" do - expect(subject.extract("hello\r\nworld\r\n")).to eq ["hello", "world"] + expect(subject.extract("hello\r\nworld\r\n").to_a).to eq ["hello", "world"] end end end