added optional redis credential key to be set

This commit is contained in:
Michael C. Beck committed 2014-01-10 15:50:04 +01:00
1 parent 3ef99c7ebb
commit adf6d1facd
2 files changed
+18 -2

No files matched your search

@@ -43,6 +43,21 @@ describe Google::APIClient::RedisStore do
end
end
describe 'redis_credentials_key' do
context 'without given key' do
it 'should return default key' do
subject.redis_credentials_key.should == "google_api_credentials"
end
end
context 'with given key' do
let(:redis_store) { Google::APIClient::RedisStore.new('a redis instance', 'another_google_api_credentials') }
it 'should use given key' do
redis_store.redis_credentials_key.should == "another_google_api_credentials"
end
end
end
describe 'write credentials' do
it 'should write credentials' do