@@ -39,11 +39,11 @@ function Jasmine(options) {
39
39
}
40
40
41
41
Jasmine . prototype . randomizeTests = function ( value ) {
42
- this . env . randomizeTests ( value ) ;
42
+ this . env . configure ( { random : value } ) ;
43
43
} ;
44
44
45
45
Jasmine . prototype . seed = function ( value ) {
46
- this . env . seed ( value ) ;
46
+ this . env . configure ( { seed : value } ) ;
47
47
} ;
48
48
49
49
Jasmine . prototype . showColors = function ( value ) {
@@ -115,22 +115,22 @@ Jasmine.prototype.loadConfigFile = function(configFilePath) {
115
115
Jasmine . prototype . loadConfig = function ( config ) {
116
116
this . specDir = config . spec_dir || this . specDir ;
117
117
118
- var configOptions = { } ;
118
+ var configuration = { } ;
119
119
120
120
if ( config . stopSpecOnExpectationFailure !== undefined ) {
121
- configOptions . oneFailurePerSpec = config . stopSpecOnExpectationFailure ;
121
+ configuration . oneFailurePerSpec = config . stopSpecOnExpectationFailure ;
122
122
}
123
123
124
124
if ( config . stopOnSpecFailure !== undefined ) {
125
- configOptions . failFast = config . stopOnSpecFailure ;
125
+ configuration . failFast = config . stopOnSpecFailure ;
126
126
}
127
127
128
128
if ( config . random !== undefined ) {
129
- configOptions . random = config . random ;
129
+ configuration . random = config . random ;
130
130
}
131
131
132
- if ( Object . keys ( configOptions ) . length > 0 ) {
133
- this . env . configure ( configOptions ) ;
132
+ if ( Object . keys ( configuration ) . length > 0 ) {
133
+ this . env . configure ( configuration ) ;
134
134
}
135
135
136
136
if ( config . helpers ) {
@@ -195,11 +195,11 @@ Jasmine.prototype.onComplete = function(onCompleteCallback) {
195
195
} ;
196
196
197
197
Jasmine . prototype . stopSpecOnExpectationFailure = function ( value ) {
198
- this . env . throwOnExpectationFailure ( value ) ;
198
+ this . env . configure ( { oneFailurePerSpec : value } ) ;
199
199
} ;
200
200
201
201
Jasmine . prototype . stopOnSpecFailure = function ( value ) {
202
- this . env . stopOnSpecFailure ( value ) ;
202
+ this . env . configure ( { failFast : value } ) ;
203
203
} ;
204
204
205
205
Jasmine . prototype . exitCodeCompletion = function ( passed ) {
@@ -243,9 +243,9 @@ Jasmine.prototype.execute = function(files, filterString) {
243
243
var specFilter = new ConsoleSpecFilter ( {
244
244
filterString : filterString
245
245
} ) ;
246
- this . env . specFilter = function ( spec ) {
246
+ this . env . configure ( { specFilter : function ( spec ) {
247
247
return specFilter . matches ( spec . getFullName ( ) ) ;
248
- } ;
248
+ } } ) ;
249
249
}
250
250
251
251
if ( files && files . length > 0 ) {
0 commit comments