|
28 | 28 |
|
29 | 29 | before(:context) do |
30 | 30 | class CallBack |
31 | | - def call(args) |
32 | | - args |
| 31 | + def call |
33 | 32 | end |
34 | 33 | end |
35 | 34 |
|
@@ -106,8 +105,7 @@ def call(args) |
106 | 105 | it 'should add and return notification ID when multiple |
107 | 106 | valid callbacks are added for a single notification type' do |
108 | 107 | class CallBackSecond |
109 | | - def call(_args) |
110 | | - 'Test multi listner.' |
| 108 | + def call |
111 | 109 | end |
112 | 110 | end |
113 | 111 |
|
@@ -164,12 +162,7 @@ def call(_args) |
164 | 162 | let(:notification_center) { Optimizely::NotificationCenter.new(spy_logger, raise_error_handler) } |
165 | 163 | before(:example) do |
166 | 164 | @inner_notification_center = notification_center |
167 | | - class CallBackSecond |
168 | | - def call(_args) |
169 | | - 'Test remove notification.' |
170 | | - end |
171 | | - end |
172 | | - |
| 165 | + |
173 | 166 | @callback_second = CallBackSecond.new |
174 | 167 | @callback_reference_second = @callback_second.method(:call) |
175 | 168 | # add a callback for multiple notification types |
@@ -319,18 +312,12 @@ def call(_args) |
319 | 312 | let(:notification_center) { Optimizely::NotificationCenter.new(spy_logger, raise_error_handler) } |
320 | 313 | before(:example) do |
321 | 314 | @inner_notification_center = notification_center |
322 | | - class CallBackSecond |
323 | | - def call(_args) |
324 | | - 'Test remove notification.' |
325 | | - end |
326 | | - end |
327 | | - |
| 315 | + |
328 | 316 | @callback_second = CallBackSecond.new |
329 | 317 | @callback_reference_second = @callback_second.method(:call) |
330 | 318 |
|
331 | 319 | class CallBackThird |
332 | | - def call(_args) |
333 | | - 'Test remove notification.' |
| 320 | + def call |
334 | 321 | end |
335 | 322 | end |
336 | 323 |
|
@@ -404,8 +391,7 @@ def deliver_two(_args) |
404 | 391 | @logger.log Logger::INFO, 'delivered two.' |
405 | 392 | end |
406 | 393 |
|
407 | | - def deliver_three(_args) |
408 | | - @logger.log Logger::INFO, 'delivered three.' |
| 394 | + def deliver_three |
409 | 395 | end |
410 | 396 | end |
411 | 397 | let(:raise_error_handler) { Optimizely::RaiseErrorHandler.new } |
|
0 commit comments