Skip to content

Commit

Permalink
restore local-storage as the default store
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoow committed Oct 16, 2015
1 parent 970f53d commit 6e2df74
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion addon/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const DEFAULTS = {
authenticationRoute: 'login',
routeAfterAuthentication: 'index',
routeIfAlreadyAuthenticated: 'index',
store: 'session-store:ephemeral'
store: 'session-store:local-storage'
};

/**
Expand Down
8 changes: 4 additions & 4 deletions tests/dummy/config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ module.exports = function(environment) {
}
};

ENV['ember-simple-auth'] = {
store: 'session-store:local-storage'
};

if (environment === 'development') {
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
Expand All @@ -53,6 +49,10 @@ module.exports = function(environment) {
ENV.APP.LOG_VIEW_LOOKUPS = false;

ENV.APP.rootElement = '#ember-testing';

ENV['ember-simple-auth'] = {
store: 'session-store:ephemeral'
};
}

if (environment === 'production') {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/configuration-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ describe('Configuration', () => {
});

describe('store', () => {
it('defaults to "session-store:ephemeral"', () => {
expect(Configuration.store).to.eql('session-store:ephemeral');
it('defaults to "session-store:local-storage"', () => {
expect(Configuration.store).to.eql('session-store:local-storage');
});
});

Expand Down

0 comments on commit 6e2df74

Please sign in to comment.