@@ -74,25 +74,25 @@ module('Ember.SimpleAuth', {
74
74
}
75
75
} ) ;
76
76
77
- test ( 'saves the server token endpoint when specified for setup' , function ( ) {
77
+ test ( 'assigns the server token endpoint during setup' , function ( ) {
78
78
Ember . SimpleAuth . setup ( containerMock , applicationMock , { serverTokenEndpoint : '/endpoint' } ) ;
79
79
80
80
equal ( Ember . SimpleAuth . serverTokenEndpoint , '/endpoint' , 'Ember.SimpleAuth saves serverTokenEndpoint when specified for setup.' ) ;
81
81
} ) ;
82
82
83
- test ( 'saves the route after login when specified for setup' , function ( ) {
83
+ test ( 'assigns the route after login during setup' , function ( ) {
84
84
Ember . SimpleAuth . setup ( containerMock , applicationMock , { routeAfterLogin : 'somewhere' } ) ;
85
85
86
86
equal ( Ember . SimpleAuth . routeAfterLogin , 'somewhere' , 'Ember.SimpleAuth saves routeAfterLogin when specified for setup.' ) ;
87
87
} ) ;
88
88
89
- test ( 'saves the route after logout when specified for setup' , function ( ) {
89
+ test ( 'assigns the route after logout during setup' , function ( ) {
90
90
Ember . SimpleAuth . setup ( containerMock , applicationMock , { routeAfterLogout : 'somewhere' } ) ;
91
91
92
92
equal ( Ember . SimpleAuth . routeAfterLogout , 'somewhere' , 'Ember.SimpleAuth saves routeAfterLogout when specified for setup.' ) ;
93
93
} ) ;
94
94
95
- test ( 'saves the token-auto-refresh-flag when specified for setup' , function ( ) {
95
+ test ( 'assigns the token-auto-refresh-flag during setup' , function ( ) {
96
96
Ember . SimpleAuth . setup ( containerMock , applicationMock , { autoRefreshToken : false } ) ;
97
97
98
98
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() {
102
102
ok ( Ember . SimpleAuth . autoRefreshToken , 'Ember.SimpleAuth defaults autoRefreshToken to true when not specified for setup.' ) ;
103
103
} ) ;
104
104
105
- test ( 'saves the login route when specified for setup' , function ( ) {
105
+ test ( 'assigns the login route during setup' , function ( ) {
106
106
Ember . SimpleAuth . setup ( containerMock , applicationMock , { loginRoute : 'somewhere' } ) ;
107
107
108
108
equal ( Ember . SimpleAuth . loginRoute , 'somewhere' , 'Ember.SimpleAuth saves loginRoute when specified for setup.' ) ;
109
109
} ) ;
110
110
111
- test ( 'saves the cross domain whitelist when specified for setup' , function ( ) {
111
+ test ( 'assigns the cross domain whitelist during setup' , function ( ) {
112
112
Ember . SimpleAuth . setup ( containerMock , applicationMock , { crossDomainWhitelist : [ 'http://domain1.com:1234' ] } ) ;
113
113
114
114
deepEqual ( Ember . SimpleAuth . crossDomainWhitelist , Ember . A ( [ 'http://domain1.com:1234' ] ) , 'Ember.SimpleAuth saves crossDomainWhitelist when specified for setup.' ) ;
0 commit comments