Sha256: 9ed87a32df3249db979b409e3893519163e31582af4a62cf87f7f44800fcc983
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
require_relative '../../spec_helper' describe Authentication do let(:credentials){ {user: 'user', password: 'password'} } describe 'config' do it 'should inject authentication in server class' do Authentication.config(credentials) end end describe 'authentication_required??' do it 'should return true if it has some credentials' do Authentication.config(credentials) Authentication.authentication_required?.should eq(true) end it 'should return false if no credentials were provided' do Authentication.config(nil) Authentication.authentication_required?.should eq(false) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_monitor-0.2 | lib/engine/spec/lib/security/authentication_spec.rb |