Skip to content

Commit c88b81a

Browse files
author
Marco Otte-Witte
committed
better spec wording
1 parent d8e2be7 commit c88b81a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/ember-simple-auth/tests/core_test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,25 @@ module('Ember.SimpleAuth', {
7474
}
7575
});
7676

77-
test('saves the server token endpoint when specified for setup', function() {
77+
test('assigns the server token endpoint during setup', function() {
7878
Ember.SimpleAuth.setup(containerMock, applicationMock, { serverTokenEndpoint: '/endpoint' });
7979

8080
equal(Ember.SimpleAuth.serverTokenEndpoint, '/endpoint', 'Ember.SimpleAuth saves serverTokenEndpoint when specified for setup.');
8181
});
8282

83-
test('saves the route after login when specified for setup', function() {
83+
test('assigns the route after login during setup', function() {
8484
Ember.SimpleAuth.setup(containerMock, applicationMock, { routeAfterLogin: 'somewhere' });
8585

8686
equal(Ember.SimpleAuth.routeAfterLogin, 'somewhere', 'Ember.SimpleAuth saves routeAfterLogin when specified for setup.');
8787
});
8888

89-
test('saves the route after logout when specified for setup', function() {
89+
test('assigns the route after logout during setup', function() {
9090
Ember.SimpleAuth.setup(containerMock, applicationMock, { routeAfterLogout: 'somewhere' });
9191

9292
equal(Ember.SimpleAuth.routeAfterLogout, 'somewhere', 'Ember.SimpleAuth saves routeAfterLogout when specified for setup.');
9393
});
9494

95-
test('saves the token-auto-refresh-flag when specified for setup', function() {
95+
test('assigns the token-auto-refresh-flag during setup', function() {
9696
Ember.SimpleAuth.setup(containerMock, applicationMock, { autoRefreshToken: false });
9797

9898
ok(!Ember.SimpleAuth.autoRefreshToken, 'Ember.SimpleAuth saves autoRefreshToken when specified for setup.');
@@ -102,13 +102,13 @@ test('saves the token-auto-refresh-flag when specified for setup', function() {
102102
ok(Ember.SimpleAuth.autoRefreshToken, 'Ember.SimpleAuth defaults autoRefreshToken to true when not specified for setup.');
103103
});
104104

105-
test('saves the login route when specified for setup', function() {
105+
test('assigns the login route during setup', function() {
106106
Ember.SimpleAuth.setup(containerMock, applicationMock, { loginRoute: 'somewhere' });
107107

108108
equal(Ember.SimpleAuth.loginRoute, 'somewhere', 'Ember.SimpleAuth saves loginRoute when specified for setup.');
109109
});
110110

111-
test('saves the cross domain whitelist when specified for setup', function() {
111+
test('assigns the cross domain whitelist during setup', function() {
112112
Ember.SimpleAuth.setup(containerMock, applicationMock, { crossDomainWhitelist: ['http://domain1.com:1234'] });
113113

114114
deepEqual(Ember.SimpleAuth.crossDomainWhitelist, Ember.A(['http://domain1.com:1234']), 'Ember.SimpleAuth saves crossDomainWhitelist when specified for setup.');

0 commit comments

Comments
 (0)