0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00: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');
configUtils.set({
@ -163,20 +163,15 @@ describe('Config', function () {
}
});
config.get('storage').should.have.property('active', {
images: 's3',
themes: 'local-file-store'
});
config.get('storage').should.have.property('active', 's3');
config.get('storage').should.have.property('s3', {});
});
it('should use default theme adapter when passing an object', function () {
var storagePath = path.join(config.get('paths').contentPath, 'storage', 's3');
it('able to set storage for themes (but not officially supported!)', function () {
configUtils.set({
storage: {
active: {
images: 'local-file-store',
themes: 's3'
}
}
@ -184,7 +179,7 @@ describe('Config', function () {
config.get('storage').should.have.property('active', {
images: 'local-file-store',
themes: 'local-file-store'
themes: 's3'
});
});

View file

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