Skip to content

Commit 58eeb12

Browse files
authored
use ruby 3.4-preview2 (#518)
1 parent a1c43f8 commit 58eeb12

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
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'

spec/rdkafka/consumer/topic_partition_list_spec.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,18 @@
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

0 commit comments

Comments
 (0)