spec/lib/faye/authentication/server_extension_spec.rb in faye-authentication-1.9.1 vs spec/lib/faye/authentication/server_extension_spec.rb in faye-authentication-1.10.0

- old
+ new

@@ -31,9 +31,14 @@ context 'requires signature' do before { expect(Faye::Authentication).to receive(:authentication_required?).with(message, {}).and_return(true) } context 'with signature' do before { message['signature'] = Faye::Authentication.sign(message.merge({'channel' => channel}), secret) } it_should_behave_like 'signature_has_no_error' + + it 'removes the signature in the response' do + subject + expect(@result).not_to have_key('signature') + end end context 'without signature' do it_should_behave_like 'signature_has_error' end