0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

🎨 🔦 no support for active storage adapter as string

refs #6982
[ci skip]
This commit is contained in:
kirrg001 2016-09-13 21:47:36 +02:00 committed by Hannah Wolfe
parent 3e02dbf734
commit bd4590d0b5
2 changed files with 8 additions and 11 deletions

View file

@ -153,7 +153,7 @@ describe('Config', function () {
}); });
}); });
it('should allow setting a custom active storage as string', function () { it('no effect: setting a custom active storage as string', function () {
var storagePath = path.join(config.get('paths').contentPath, 'storage', 's3'); var storagePath = path.join(config.get('paths').contentPath, 'storage', 's3');
configUtils.set({ configUtils.set({
@ -163,20 +163,15 @@ describe('Config', function () {
} }
}); });
config.get('storage').should.have.property('active', { config.get('storage').should.have.property('active', 's3');
images: 's3',
themes: 'local-file-store'
});
config.get('storage').should.have.property('s3', {}); config.get('storage').should.have.property('s3', {});
}); });
it('should use default theme adapter when passing an object', function () { it('able to set storage for themes (but not officially supported!)', function () {
var storagePath = path.join(config.get('paths').contentPath, 'storage', 's3');
configUtils.set({ configUtils.set({
storage: { storage: {
active: { active: {
images: 'local-file-store',
themes: 's3' themes: 's3'
} }
} }
@ -184,7 +179,7 @@ describe('Config', function () {
config.get('storage').should.have.property('active', { config.get('storage').should.have.property('active', {
images: 'local-file-store', images: 'local-file-store',
themes: 'local-file-store' themes: 's3'
}); });
}); });

View file

@ -85,7 +85,9 @@ describe('storage: index_spec', function () {
configUtils.set({ configUtils.set({
storage: { storage: {
active: 'another-storage' active: {
images: 'another-storage'
}
}, },
paths: { paths: {
storage: __dirname + '/another-storage.js' storage: __dirname + '/another-storage.js'