spec/lib/faye/authentication_spec.rb in faye-authentication-1.9.0 vs spec/lib/faye/authentication_spec.rb in faye-authentication-1.9.1

- old
+ new

@@ -93,9 +93,13 @@ end it 'returns false if lambda returns true' do expect(Faye::Authentication.authentication_required?(message, {whitelist: lambda { |message| true }})).to be(false) end + + it 'returns false if channel is nil' do + expect(Faye::Authentication.authentication_required?('clientId' => clientId, 'text' => 'whatever')).to be(false) + end end shared_examples 'meta_except_subscribe' do it 'returns false if no options are passed' do expect(Faye::Authentication.authentication_required?(message)).to be(false)