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