@@ -13,7 +13,8 @@ describe('Jasmine', function() {
13
13
execute : jasmine . createSpy ( 'execute' ) ,
14
14
throwOnExpectationFailure : jasmine . createSpy ( 'throwOnExpectationFailure' ) ,
15
15
stopOnSpecFailure : jasmine . createSpy ( 'stopOnSpecFailure' ) ,
16
- randomizeTests : jasmine . createSpy ( 'randomizeTests' )
16
+ randomizeTests : jasmine . createSpy ( 'randomizeTests' ) ,
17
+ configure : jasmine . createSpy ( 'configure' )
17
18
} ) ,
18
19
Timer : jasmine . createSpy ( 'Timer' )
19
20
} ;
@@ -191,39 +192,39 @@ describe('Jasmine', function() {
191
192
this . configObject . stopSpecOnExpectationFailure = true ;
192
193
this . fixtureJasmine . loadConfig ( this . configObject ) ;
193
194
194
- expect ( this . fixtureJasmine . env . throwOnExpectationFailure ) . toHaveBeenCalledWith ( true ) ;
195
+ expect ( this . fixtureJasmine . env . configure ) . toHaveBeenCalledWith ( { oneFailurePerSpec : true } ) ;
195
196
} ) ;
196
197
197
198
it ( 'does not configure jasmine-core for stopping spec on expectation failure by default' , function ( ) {
198
199
this . fixtureJasmine . loadConfig ( this . configObject ) ;
199
200
200
- expect ( this . fixtureJasmine . env . throwOnExpectationFailure ) . not . toHaveBeenCalled ( ) ;
201
+ expect ( this . fixtureJasmine . env . configure ) . not . toHaveBeenCalled ( ) ;
201
202
} ) ;
202
203
203
204
it ( 'can tell jasmine-core to stop execution when a spec fails' , function ( ) {
204
205
this . configObject . stopOnSpecFailure = true ;
205
206
this . fixtureJasmine . loadConfig ( this . configObject ) ;
206
207
207
- expect ( this . fixtureJasmine . env . stopOnSpecFailure ) . toHaveBeenCalledWith ( true ) ;
208
+ expect ( this . fixtureJasmine . env . configure ) . toHaveBeenCalledWith ( { failFast : true } ) ;
208
209
} ) ;
209
210
210
211
it ( 'does not configure jasmine-core for stopping execution by default' , function ( ) {
211
212
this . fixtureJasmine . loadConfig ( this . configObject ) ;
212
213
213
- expect ( this . fixtureJasmine . env . stopOnSpecFailure ) . not . toHaveBeenCalled ( ) ;
214
+ expect ( this . fixtureJasmine . env . configure ) . not . toHaveBeenCalled ( ) ;
214
215
} ) ;
215
216
216
217
it ( 'can tell jasmine-core to run random specs' , function ( ) {
217
218
this . configObject . random = true ;
218
219
this . fixtureJasmine . loadConfig ( this . configObject ) ;
219
220
220
- expect ( this . fixtureJasmine . env . randomizeTests ) . toHaveBeenCalledWith ( true ) ;
221
+ expect ( this . fixtureJasmine . env . configure ) . toHaveBeenCalledWith ( { random : true } ) ;
221
222
} ) ;
222
223
223
224
it ( 'uses jasmine-core defaults if random is unspecified' , function ( ) {
224
225
this . fixtureJasmine . loadConfig ( this . configObject ) ;
225
226
226
- expect ( this . fixtureJasmine . env . randomizeTests ) . not . toHaveBeenCalled ( ) ;
227
+ expect ( this . fixtureJasmine . env . configure ) . not . toHaveBeenCalled ( ) ;
227
228
} ) ;
228
229
229
230
describe ( 'with options' , function ( ) {
0 commit comments