File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2222 fail-fast : false
2323 matrix :
2424 ruby :
25- - ' 3.4.0-preview1 '
25+ - ' 3.4.0-preview2 '
2626 - ' 3.3'
2727 - ' 3.2'
2828 - ' 3.1'
Original file line number Diff line number Diff line change 114114 end
115115
116116 describe "#to_s" do
117+ let ( :expected ) do
118+ if RUBY_VERSION >= '3.4.0'
119+ "<TopicPartitionList: {\" topic1\" => [<Partition 0>, <Partition 1>]}>"
120+ else
121+ "<TopicPartitionList: {\" topic1\" =>[<Partition 0>, <Partition 1>]}>"
122+ end
123+ end
124+
117125 it "should return a human readable representation" do
118126 list = Rdkafka ::Consumer ::TopicPartitionList . new
119127 list . add_topic ( "topic1" , [ 0 , 1 ] )
120128
121- expected = "<TopicPartitionList: {\" topic1\" =>[<Partition 0>, <Partition 1>]}>"
122-
123129 expect ( list . to_s ) . to eq expected
124130 end
125131 end
You can’t perform that action at this time.
0 commit comments