spec/unit/realtime/presence_spec.rb in ably-1.0.5 vs spec/unit/realtime/presence_spec.rb in ably-1.0.6
- old
+ new
@@ -96,10 +96,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
subject.subscribe(enter_action, &callback)
end