spec/unit/modules/async_wrapper_spec.rb in ably-1.0.5 vs spec/unit/modules/async_wrapper_spec.rb in ably-1.0.6

- old
+ new

@@ -29,11 +29,11 @@ end context '#async_wrap blocking block' do context 'returns result' do let(:block) do - proc do + lambda do sleep sleep_time result end end @@ -102,10 +102,10 @@ end end context 'raises an Exception' do let(:block) do - proc do + lambda do sleep sleep_time raise RuntimeError, 'Intentional' end end