Skip to content

Commit 811d3b6

Browse files
committed
Change spec variable name
1 parent e50d8bf commit 811d3b6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/rdkafka/producer_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,17 @@ def call(report)
116116
end
117117

118118
it "should provide handle" do
119-
callback_handle = []
119+
callback_handles = []
120120
callback = Class.new do
121-
def initialize(callback_handle)
122-
@callback_handle = callback_handle
121+
def initialize(callback_handles)
122+
@callback_handles = callback_handles
123123
end
124124

125125
def call(_, handle)
126-
@callback_handle << handle
126+
@callback_handles << handle
127127
end
128128
end
129-
producer.delivery_callback = callback.new(callback_handle)
129+
producer.delivery_callback = callback.new(callback_handles)
130130

131131
# Produce a message
132132
handle = producer.produce(
@@ -142,7 +142,7 @@ def call(_, handle)
142142
producer.close
143143

144144
# Callback should have been called
145-
expect(handle).to be callback_handle.first
145+
expect(handle).to be callback_handles.first
146146
end
147147
end
148148

0 commit comments

Comments
 (0)