spec/unit/realtime/channel_spec.rb in ably-1.0.5 vs spec/unit/realtime/channel_spec.rb in ably-1.0.6

- old
+ new

@@ -201,10 +201,10 @@ end end context '#unsubscribe' do let(:callback) do - Proc.new { |message| message_history[:received] += 1 } + lambda { |message| message_history[:received] += 1 } end before do allow(subject).to receive(:attach).and_return(:true) subject.subscribe click_event, &callback