|
30 | 30 |
|
31 | 31 | before(:context) do
|
32 | 32 | class CallBack
|
33 |
| - def call(args) |
34 |
| - args |
35 |
| - end |
| 33 | + def call; end |
36 | 34 | end
|
37 | 35 |
|
38 | 36 | @callback = CallBack.new
|
@@ -108,9 +106,7 @@ def call(args)
|
108 | 106 | it 'should add and return notification ID when multiple
|
109 | 107 | valid callbacks are added for a single notification type' do
|
110 | 108 | class CallBackSecond
|
111 |
| - def call(_args) |
112 |
| - 'Test multi listner.' |
113 |
| - end |
| 109 | + def call; end |
114 | 110 | end
|
115 | 111 |
|
116 | 112 | @callback_second = CallBackSecond.new
|
@@ -166,12 +162,6 @@ def call(_args)
|
166 | 162 | let(:notification_center) { Optimizely::NotificationCenter.new(spy_logger, raise_error_handler) }
|
167 | 163 | before(:example) do
|
168 | 164 | @inner_notification_center = notification_center
|
169 |
| - class CallBackSecond |
170 |
| - def call(_args) |
171 |
| - 'Test remove notification.' |
172 |
| - end |
173 |
| - end |
174 |
| - |
175 | 165 | @callback_second = CallBackSecond.new
|
176 | 166 | @callback_reference_second = @callback_second.method(:call)
|
177 | 167 | # add a callback for multiple notification types
|
@@ -321,19 +311,11 @@ def call(_args)
|
321 | 311 | let(:notification_center) { Optimizely::NotificationCenter.new(spy_logger, raise_error_handler) }
|
322 | 312 | before(:example) do
|
323 | 313 | @inner_notification_center = notification_center
|
324 |
| - class CallBackSecond |
325 |
| - def call(_args) |
326 |
| - 'Test remove notification.' |
327 |
| - end |
328 |
| - end |
329 |
| - |
330 | 314 | @callback_second = CallBackSecond.new
|
331 | 315 | @callback_reference_second = @callback_second.method(:call)
|
332 | 316 |
|
333 | 317 | class CallBackThird
|
334 |
| - def call(_args) |
335 |
| - 'Test remove notification.' |
336 |
| - end |
| 318 | + def call; end |
337 | 319 | end
|
338 | 320 |
|
339 | 321 | @callback_third = CallBackThird.new
|
@@ -406,9 +388,7 @@ def deliver_two(_args)
|
406 | 388 | @logger.log Logger::INFO, 'delivered two.'
|
407 | 389 | end
|
408 | 390 |
|
409 |
| - def deliver_three(_args) |
410 |
| - @logger.log Logger::INFO, 'delivered three.' |
411 |
| - end |
| 391 | + def deliver_three; end |
412 | 392 | end
|
413 | 393 | let(:raise_error_handler) { Optimizely::RaiseErrorHandler.new }
|
414 | 394 | let(:invitation) { Invitation.new(spy_logger) }
|
|
0 commit comments