spec/async/io/stream_spec.rb in async-io-1.27.4 vs spec/async/io/stream_spec.rb in async-io-1.27.5
- old
+ new
@@ -161,10 +161,10 @@
it "should read only the amount requested" do
io.write "Hello World"
io.seek(0)
- expect(subject.io).to receive(:read_nonblock).and_call_original.twice
+ expect(subject.io).to receive(:read_nonblock).and_call_original.once
expect(subject.read_partial(4)).to be == "Hell"
expect(subject).to_not be_eof
expect(subject.read_partial(20)).to be == "o World"