lib/submodules/ably-ruby/spec/acceptance/rest/presence_spec.rb in ably-rest-0.9.3 vs lib/submodules/ably-ruby/spec/acceptance/rest/presence_spec.rb in ably-rest-1.0.0
- old
+ new
@@ -397,12 +397,12 @@
it 'returns the messages still encoded' do
expect(presence_message.encoding).to match(/cipher\+aes-128-cbc/)
end
it 'logs a cipher error' do
- expect(client.logger).to receive(:error) do |message|
- expect(message).to match(/Cipher algorithm [\w-]+ does not match/)
+ expect(client.logger).to receive(:error) do |*args, &block|
+ expect(args.concat([block ? block.call : nil]).join(',')).to match(/Cipher algorithm [\w-]+ does not match/)
end
presence.get
end
end
@@ -421,11 +421,11 @@
it 'returns the messages still encoded' do
expect(presence_message.encoding).to match(/cipher\+aes-128-cbc/)
end
it 'logs a cipher error' do
- expect(client.logger).to receive(:error) do |message|
- expect(message).to match(/Cipher algorithm [\w-]+ does not match/)
+ expect(client.logger).to receive(:error) do |*args, &block|
+ expect(args.concat([block ? block.call : nil]).join(',')).to match(/Cipher algorithm [\w-]+ does not match/)
end
presence.history
end
end
end