From 19eed6afcbd2741f19c8589c0d9d5a928c05d5a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Fri, 5 Jan 2024 21:49:22 +0100 Subject: [PATCH] Can't tell what was supposed to be proved here --- .../lib/ruby_event_store/spec/event_repository_lint.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb b/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb index 1980054cdd..d16091773c 100644 --- a/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb +++ b/ruby_event_store/lib/ruby_event_store/spec/event_repository_lint.rb @@ -909,10 +909,7 @@ def read_events_backward(repository, stream = nil, from: nil, to: nil, count: ni specify "can store arbitrary binary data" do skip unless helper.supports_binary? - binary = String.new("\xB0") - expect(binary.valid_encoding?).to eq(false) - binary.force_encoding("binary") - expect(binary.valid_encoding?).to eq(true) + binary = String.new("\xB0").force_encoding("binary") repository.append_to_stream([event = SRecord.new(data: binary, metadata: binary)], stream, version_none) end