cukesparse 2.0.5 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cukesparse +1 -1
- data/cukesparse.gemspec +1 -1
- data/lib/cukesparse.rb +106 -146
- data/lib/cukesparse/version.rb +1 -1
- data/spec/cukesparse/add_multiple_spec.rb +6 -6
- data/spec/cukesparse/argv_spec.rb +14 -0
- data/spec/cukesparse/check_for_parameters_spec.rb +0 -1
- data/spec/cukesparse/check_for_task_spec.rb +2 -3
- data/spec/cukesparse/debug_spec.rb +25 -0
- data/spec/cukesparse/execute_spec.rb +2 -2
- data/spec/cukesparse/load_config_spec.rb +2 -2
- data/spec/cukesparse/parse_argv_spec.rb +80 -80
- data/spec/cukesparse/reset_spec.rb +26 -0
- data/spec/cukesparse/set_cucumber_defaults_spec.rb +33 -20
- data/spec/cukesparse/set_runtime_defaults_spec.rb +28 -28
- data/spec/cukesparse/split_parameters_spec.rb +12 -12
- data/spec/fixtures/valid_tasks.yml +11 -0
- data/spec/helper.rb +2 -1
- metadata +9 -3
@@ -15,9 +15,9 @@ describe '.execute' do
|
|
15
15
|
|
16
16
|
context "when run with the tasks argument" do
|
17
17
|
it "should display the tasks within the config file" do
|
18
|
-
Cukesparse.
|
18
|
+
Cukesparse.config_file = File.join(fixture_path, 'valid_tasks.yml')
|
19
19
|
ARGV.push('tasks')
|
20
|
-
Cukesparse.should_receive("puts").with("\e[0;33;49mYou have the following tasks within your config file: test_task, test_task1, no_defaults\e[0m")
|
20
|
+
Cukesparse.should_receive("puts").with("\e[0;33;49mYou have the following tasks within your config file: test_task, test_task1, cucumber_default_unknown, no_defaults\e[0m")
|
21
21
|
Cukesparse.execute
|
22
22
|
end
|
23
23
|
end
|
@@ -8,7 +8,7 @@ describe '.load_config' do
|
|
8
8
|
|
9
9
|
context "when run with incorrect task file" do
|
10
10
|
it "will return an error if the task file fails to parse" do
|
11
|
-
Cukesparse.
|
11
|
+
Cukesparse.config_file = File.join(fixture_path, 'invalid_tasks.yml')
|
12
12
|
Cukesparse.should_receive("abort").with("\e[4;31;49mYour tasks file did not parse as expected!\e[0m")
|
13
13
|
Cukesparse.load_config
|
14
14
|
end
|
@@ -16,7 +16,7 @@ describe '.load_config' do
|
|
16
16
|
|
17
17
|
context "when run with task file missing" do
|
18
18
|
it "will return an error if the task file is missing" do
|
19
|
-
Cukesparse.
|
19
|
+
Cukesparse.config_file = File.join(fixture_path, 'missing_tasks.yml')
|
20
20
|
Cukesparse.should_receive("abort").with("\e[4;31;49mYour tasks file is missing!\e[0m")
|
21
21
|
Cukesparse.load_config
|
22
22
|
end
|
@@ -21,11 +21,11 @@ describe '.parse_argv' do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
it "should have a parameter of tags" do
|
24
|
-
Cukesparse.parameters.should have_key
|
24
|
+
Cukesparse.parameters.should have_key 'tags'
|
25
25
|
end
|
26
26
|
|
27
27
|
it "should have a tags parameter value of --tags test" do
|
28
|
-
Cukesparse.parameters[
|
28
|
+
Cukesparse.parameters['tags'].should eql ['--tags test']
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
@@ -36,11 +36,11 @@ describe '.parse_argv' do
|
|
36
36
|
end
|
37
37
|
|
38
38
|
it "should have a parameter of name" do
|
39
|
-
Cukesparse.parameters.should have_key
|
39
|
+
Cukesparse.parameters.should have_key 'name'
|
40
40
|
end
|
41
41
|
|
42
42
|
it "should have a name parameter value of test" do
|
43
|
-
Cukesparse.parameters[
|
43
|
+
Cukesparse.parameters['name'].should eql ['--name name_test']
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -51,11 +51,11 @@ describe '.parse_argv' do
|
|
51
51
|
end
|
52
52
|
|
53
53
|
it "should have a parameter of name" do
|
54
|
-
Cukesparse.parameters.should have_key
|
54
|
+
Cukesparse.parameters.should have_key 'name'
|
55
55
|
end
|
56
56
|
|
57
57
|
it "should have a name parameter value of test" do
|
58
|
-
Cukesparse.parameters[
|
58
|
+
Cukesparse.parameters['name'].should eql ['--name name_test']
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
@@ -66,11 +66,11 @@ describe '.parse_argv' do
|
|
66
66
|
end
|
67
67
|
|
68
68
|
it "should have a parameter of format" do
|
69
|
-
Cukesparse.parameters.should have_key
|
69
|
+
Cukesparse.parameters.should have_key 'format'
|
70
70
|
end
|
71
71
|
|
72
72
|
it "should have a tags parameter value of test" do
|
73
|
-
Cukesparse.parameters[
|
73
|
+
Cukesparse.parameters['format'].should eql '--format pretty'
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
@@ -81,11 +81,11 @@ describe '.parse_argv' do
|
|
81
81
|
end
|
82
82
|
|
83
83
|
it "should have a parameter of format" do
|
84
|
-
Cukesparse.parameters.should have_key
|
84
|
+
Cukesparse.parameters.should have_key 'format'
|
85
85
|
end
|
86
86
|
|
87
87
|
it "should have a tags parameter value of test" do
|
88
|
-
Cukesparse.parameters[
|
88
|
+
Cukesparse.parameters['format'].should eql '--format pretty'
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
@@ -97,11 +97,11 @@ describe '.parse_argv' do
|
|
97
97
|
end
|
98
98
|
|
99
99
|
it "should have a parameter of name" do
|
100
|
-
Cukesparse.parameters.should have_key
|
100
|
+
Cukesparse.parameters.should have_key 'dry_run'
|
101
101
|
end
|
102
102
|
|
103
103
|
it "should have a dry_run parameter value of --dry-run" do
|
104
|
-
Cukesparse.parameters[
|
104
|
+
Cukesparse.parameters['dry_run'].should eql '--dry-run'
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
@@ -112,11 +112,11 @@ describe '.parse_argv' do
|
|
112
112
|
end
|
113
113
|
|
114
114
|
it "should have a parameter of dry_run" do
|
115
|
-
Cukesparse.parameters.should have_key
|
115
|
+
Cukesparse.parameters.should have_key 'dry_run'
|
116
116
|
end
|
117
117
|
|
118
118
|
it "should have a dry_run parameter value of --dry-run" do
|
119
|
-
Cukesparse.parameters[
|
119
|
+
Cukesparse.parameters['dry_run'].should eql '--dry-run'
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
@@ -127,11 +127,11 @@ describe '.parse_argv' do
|
|
127
127
|
end
|
128
128
|
|
129
129
|
it "should have a parameter of verbose" do
|
130
|
-
Cukesparse.parameters.should have_key
|
130
|
+
Cukesparse.parameters.should have_key 'verbose'
|
131
131
|
end
|
132
132
|
|
133
133
|
it "should have a verbose parameter value of --verbose" do
|
134
|
-
Cukesparse.parameters[
|
134
|
+
Cukesparse.parameters['verbose'].should eql '--verbose'
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
@@ -142,11 +142,11 @@ describe '.parse_argv' do
|
|
142
142
|
end
|
143
143
|
|
144
144
|
it "should have a parameter of verbose" do
|
145
|
-
Cukesparse.parameters.should have_key
|
145
|
+
Cukesparse.parameters.should have_key 'verbose'
|
146
146
|
end
|
147
147
|
|
148
148
|
it "should have a verbose parameter value of --verbose" do
|
149
|
-
Cukesparse.parameters[
|
149
|
+
Cukesparse.parameters['verbose'].should eql '--verbose'
|
150
150
|
end
|
151
151
|
end
|
152
152
|
|
@@ -157,11 +157,11 @@ describe '.parse_argv' do
|
|
157
157
|
end
|
158
158
|
|
159
159
|
it "should have a parameter of strict" do
|
160
|
-
Cukesparse.parameters.should have_key
|
160
|
+
Cukesparse.parameters.should have_key 'strict'
|
161
161
|
end
|
162
162
|
|
163
163
|
it "should have a strict parameter value of --strict" do
|
164
|
-
Cukesparse.parameters[
|
164
|
+
Cukesparse.parameters['strict'].should eql '--strict'
|
165
165
|
end
|
166
166
|
end
|
167
167
|
|
@@ -172,11 +172,11 @@ describe '.parse_argv' do
|
|
172
172
|
end
|
173
173
|
|
174
174
|
it "should have a parameter of --strict" do
|
175
|
-
Cukesparse.parameters.should have_key
|
175
|
+
Cukesparse.parameters.should have_key 'strict'
|
176
176
|
end
|
177
177
|
|
178
178
|
it "should have a strict parameter value of --strict" do
|
179
|
-
Cukesparse.parameters[
|
179
|
+
Cukesparse.parameters['strict'].should eql '--strict'
|
180
180
|
end
|
181
181
|
end
|
182
182
|
|
@@ -187,11 +187,11 @@ describe '.parse_argv' do
|
|
187
187
|
end
|
188
188
|
|
189
189
|
it "should have a parameter of --guess" do
|
190
|
-
Cukesparse.parameters.should have_key
|
190
|
+
Cukesparse.parameters.should have_key 'guess'
|
191
191
|
end
|
192
192
|
|
193
193
|
it "should have a strict parameter value of --guess" do
|
194
|
-
Cukesparse.parameters[
|
194
|
+
Cukesparse.parameters['guess'].should eql '--guess'
|
195
195
|
end
|
196
196
|
end
|
197
197
|
|
@@ -202,11 +202,11 @@ describe '.parse_argv' do
|
|
202
202
|
end
|
203
203
|
|
204
204
|
it "should have a parameter of --guess" do
|
205
|
-
Cukesparse.parameters.should have_key
|
205
|
+
Cukesparse.parameters.should have_key 'guess'
|
206
206
|
end
|
207
207
|
|
208
208
|
it "should have a strict parameter value of --guess" do
|
209
|
-
Cukesparse.parameters[
|
209
|
+
Cukesparse.parameters['guess'].should eql '--guess'
|
210
210
|
end
|
211
211
|
end
|
212
212
|
|
@@ -217,11 +217,11 @@ describe '.parse_argv' do
|
|
217
217
|
end
|
218
218
|
|
219
219
|
it "should have a parameter of --expand" do
|
220
|
-
Cukesparse.parameters.should have_key
|
220
|
+
Cukesparse.parameters.should have_key 'expand'
|
221
221
|
end
|
222
222
|
|
223
223
|
it "should have a strict parameter value of --expand" do
|
224
|
-
Cukesparse.parameters[
|
224
|
+
Cukesparse.parameters['expand'].should eql '--expand'
|
225
225
|
end
|
226
226
|
end
|
227
227
|
|
@@ -232,11 +232,11 @@ describe '.parse_argv' do
|
|
232
232
|
end
|
233
233
|
|
234
234
|
it "should have a parameter of --expand" do
|
235
|
-
Cukesparse.parameters.should have_key
|
235
|
+
Cukesparse.parameters.should have_key 'expand'
|
236
236
|
end
|
237
237
|
|
238
238
|
it "should have a strict parameter value of --expand" do
|
239
|
-
Cukesparse.parameters[
|
239
|
+
Cukesparse.parameters['expand'].should eql '--expand'
|
240
240
|
end
|
241
241
|
end
|
242
242
|
|
@@ -247,11 +247,11 @@ describe '.parse_argv' do
|
|
247
247
|
end
|
248
248
|
|
249
249
|
it "should have a parameter of environment" do
|
250
|
-
Cukesparse.parameters.should have_key
|
250
|
+
Cukesparse.parameters.should have_key 'environment'
|
251
251
|
end
|
252
252
|
|
253
253
|
it "should have a environment parameter value of ENVIRONMENT=test_environment" do
|
254
|
-
Cukesparse.parameters[
|
254
|
+
Cukesparse.parameters['environment'].should eql 'ENVIRONMENT=test_environment'
|
255
255
|
end
|
256
256
|
end
|
257
257
|
|
@@ -262,11 +262,11 @@ describe '.parse_argv' do
|
|
262
262
|
end
|
263
263
|
|
264
264
|
it "should have a parameter of environment" do
|
265
|
-
Cukesparse.parameters.should have_key
|
265
|
+
Cukesparse.parameters.should have_key 'environment'
|
266
266
|
end
|
267
267
|
|
268
268
|
it "should have a environment parameter value of ENVIRONMENT=test_environment" do
|
269
|
-
Cukesparse.parameters[
|
269
|
+
Cukesparse.parameters['environment'].should eql 'ENVIRONMENT=test_environment'
|
270
270
|
end
|
271
271
|
end
|
272
272
|
|
@@ -277,11 +277,11 @@ describe '.parse_argv' do
|
|
277
277
|
end
|
278
278
|
|
279
279
|
it "should have a parameter of loglevel" do
|
280
|
-
Cukesparse.parameters.should have_key
|
280
|
+
Cukesparse.parameters.should have_key 'log_level'
|
281
281
|
end
|
282
282
|
|
283
283
|
it "should have a loglevel parameter value of LOG_LEVEL=debug" do
|
284
|
-
Cukesparse.parameters[
|
284
|
+
Cukesparse.parameters['log_level'].should eql 'LOG_LEVEL=debug'
|
285
285
|
end
|
286
286
|
end
|
287
287
|
|
@@ -292,11 +292,11 @@ describe '.parse_argv' do
|
|
292
292
|
end
|
293
293
|
|
294
294
|
it "should have a parameter of loglevel" do
|
295
|
-
Cukesparse.parameters.should have_key
|
295
|
+
Cukesparse.parameters.should have_key 'log_level'
|
296
296
|
end
|
297
297
|
|
298
298
|
it "should have a loglevel parameter value of LOG_LEVEL=debug" do
|
299
|
-
Cukesparse.parameters[
|
299
|
+
Cukesparse.parameters['log_level'].should eql 'LOG_LEVEL=debug'
|
300
300
|
end
|
301
301
|
end
|
302
302
|
|
@@ -307,11 +307,11 @@ describe '.parse_argv' do
|
|
307
307
|
end
|
308
308
|
|
309
309
|
it "should have a parameter of controller" do
|
310
|
-
Cukesparse.parameters.should have_key
|
310
|
+
Cukesparse.parameters.should have_key 'controller'
|
311
311
|
end
|
312
312
|
|
313
313
|
it "should have a controller parameter value of CONTROLLER=browser" do
|
314
|
-
Cukesparse.parameters[
|
314
|
+
Cukesparse.parameters['controller'].should eql 'CONTROLLER=browser'
|
315
315
|
end
|
316
316
|
end
|
317
317
|
|
@@ -322,11 +322,11 @@ describe '.parse_argv' do
|
|
322
322
|
end
|
323
323
|
|
324
324
|
it "should have a parameter of controller" do
|
325
|
-
Cukesparse.parameters.should have_key
|
325
|
+
Cukesparse.parameters.should have_key 'controller'
|
326
326
|
end
|
327
327
|
|
328
328
|
it "should have a controller parameter value of CONTROLLER=browser" do
|
329
|
-
Cukesparse.parameters[
|
329
|
+
Cukesparse.parameters['controller'].should eql 'CONTROLLER=browser'
|
330
330
|
end
|
331
331
|
end
|
332
332
|
|
@@ -337,11 +337,11 @@ describe '.parse_argv' do
|
|
337
337
|
end
|
338
338
|
|
339
339
|
it "should have a parameter of headless" do
|
340
|
-
Cukesparse.parameters.should have_key
|
340
|
+
Cukesparse.parameters.should have_key 'headless'
|
341
341
|
end
|
342
342
|
|
343
343
|
it "should have a headless parameter value of HEADLESS=TRUE" do
|
344
|
-
Cukesparse.parameters[
|
344
|
+
Cukesparse.parameters['headless'].should eql 'HEADLESS=TRUE'
|
345
345
|
end
|
346
346
|
end
|
347
347
|
|
@@ -352,11 +352,11 @@ describe '.parse_argv' do
|
|
352
352
|
end
|
353
353
|
|
354
354
|
it "should have a parameter of headless" do
|
355
|
-
Cukesparse.parameters.should have_key
|
355
|
+
Cukesparse.parameters.should have_key 'headless'
|
356
356
|
end
|
357
357
|
|
358
358
|
it "should have a headless parameter value of HEADLESS=TRUE" do
|
359
|
-
Cukesparse.parameters[
|
359
|
+
Cukesparse.parameters['headless'].should eql 'HEADLESS=TRUE'
|
360
360
|
end
|
361
361
|
end
|
362
362
|
|
@@ -367,11 +367,11 @@ describe '.parse_argv' do
|
|
367
367
|
end
|
368
368
|
|
369
369
|
it "should have a parameter of cleanup" do
|
370
|
-
Cukesparse.parameters.should have_key
|
370
|
+
Cukesparse.parameters.should have_key 'cleanup'
|
371
371
|
end
|
372
372
|
|
373
373
|
it "should have a cleanup parameter value of CLEANUP=TRUE" do
|
374
|
-
Cukesparse.parameters[
|
374
|
+
Cukesparse.parameters['cleanup'].should eql 'CLEANUP=TRUE'
|
375
375
|
end
|
376
376
|
end
|
377
377
|
|
@@ -382,11 +382,11 @@ describe '.parse_argv' do
|
|
382
382
|
end
|
383
383
|
|
384
384
|
it "should have a parameter of cleanup" do
|
385
|
-
Cukesparse.parameters.should have_key
|
385
|
+
Cukesparse.parameters.should have_key 'cleanup'
|
386
386
|
end
|
387
387
|
|
388
388
|
it "should have a cleanup parameter value of CLEANUP=FALSE" do
|
389
|
-
Cukesparse.parameters[
|
389
|
+
Cukesparse.parameters['cleanup'].should eql 'CLEANUP=FALSE'
|
390
390
|
end
|
391
391
|
end
|
392
392
|
|
@@ -397,11 +397,11 @@ describe '.parse_argv' do
|
|
397
397
|
end
|
398
398
|
|
399
399
|
it "should have a parameter of database" do
|
400
|
-
Cukesparse.parameters.should have_key
|
400
|
+
Cukesparse.parameters.should have_key 'database'
|
401
401
|
end
|
402
402
|
|
403
403
|
it "should have a database parameter value of DATABASE=TRUE" do
|
404
|
-
Cukesparse.parameters[
|
404
|
+
Cukesparse.parameters['database'].should eql 'DATABASE=TRUE'
|
405
405
|
end
|
406
406
|
end
|
407
407
|
|
@@ -412,11 +412,11 @@ describe '.parse_argv' do
|
|
412
412
|
end
|
413
413
|
|
414
414
|
it "should have a parameter of jenkins" do
|
415
|
-
Cukesparse.parameters.should have_key
|
415
|
+
Cukesparse.parameters.should have_key 'jenkins'
|
416
416
|
end
|
417
417
|
|
418
418
|
it "should have a jenkins parameter value of JENKINS=TRUE" do
|
419
|
-
Cukesparse.parameters[
|
419
|
+
Cukesparse.parameters['jenkins'].should eql 'JENKINS=TRUE'
|
420
420
|
end
|
421
421
|
end
|
422
422
|
|
@@ -427,11 +427,11 @@ describe '.parse_argv' do
|
|
427
427
|
end
|
428
428
|
|
429
429
|
it "should have a parameter of retries" do
|
430
|
-
Cukesparse.parameters.should have_key
|
430
|
+
Cukesparse.parameters.should have_key 'retries'
|
431
431
|
end
|
432
432
|
|
433
433
|
it "should have a retries parameter value of RETRIES=5" do
|
434
|
-
Cukesparse.parameters[
|
434
|
+
Cukesparse.parameters['retries'].should eql 'RETRIES=5'
|
435
435
|
end
|
436
436
|
end
|
437
437
|
|
@@ -442,11 +442,11 @@ describe '.parse_argv' do
|
|
442
442
|
end
|
443
443
|
|
444
444
|
it "should have a parameter of timeout" do
|
445
|
-
Cukesparse.parameters.should have_key
|
445
|
+
Cukesparse.parameters.should have_key 'timeout'
|
446
446
|
end
|
447
447
|
|
448
448
|
it "should have a timeout parameter value of TIMEOUT=10" do
|
449
|
-
Cukesparse.parameters[
|
449
|
+
Cukesparse.parameters['timeout'].should eql 'TIMEOUT=10'
|
450
450
|
end
|
451
451
|
end
|
452
452
|
|
@@ -457,19 +457,19 @@ describe '.parse_argv' do
|
|
457
457
|
end
|
458
458
|
|
459
459
|
it "should have a parameter of screenwidth" do
|
460
|
-
Cukesparse.parameters.should have_key
|
460
|
+
Cukesparse.parameters.should have_key 'screenwidth'
|
461
461
|
end
|
462
462
|
|
463
463
|
it "should have a parameter of screenheight" do
|
464
|
-
Cukesparse.parameters.should have_key
|
464
|
+
Cukesparse.parameters.should have_key 'screenheight'
|
465
465
|
end
|
466
466
|
|
467
467
|
it "should have a screenwidth parameter value of SCREENWIDTH=1280" do
|
468
|
-
Cukesparse.parameters[
|
468
|
+
Cukesparse.parameters['screenwidth'].should eql 'SCREENWIDTH=1280'
|
469
469
|
end
|
470
470
|
|
471
471
|
it "should have a screenheight parameter value of SCREENHEIGHT=1024" do
|
472
|
-
Cukesparse.parameters[
|
472
|
+
Cukesparse.parameters['screenheight'].should eql 'SCREENHEIGHT=1024'
|
473
473
|
end
|
474
474
|
end
|
475
475
|
|
@@ -480,19 +480,19 @@ describe '.parse_argv' do
|
|
480
480
|
end
|
481
481
|
|
482
482
|
it "should have a parameter of xposition" do
|
483
|
-
Cukesparse.parameters.should have_key
|
483
|
+
Cukesparse.parameters.should have_key 'xposition'
|
484
484
|
end
|
485
485
|
|
486
486
|
it "should have a parameter of yposition" do
|
487
|
-
Cukesparse.parameters.should have_key
|
487
|
+
Cukesparse.parameters.should have_key 'yposition'
|
488
488
|
end
|
489
489
|
|
490
490
|
it "should have a xposition parameter value of XPOSITION=0" do
|
491
|
-
Cukesparse.parameters[
|
491
|
+
Cukesparse.parameters['xposition'].should eql 'XPOSITION=0'
|
492
492
|
end
|
493
493
|
|
494
494
|
it "should have a yposition parameter value of YPOSITION=0" do
|
495
|
-
Cukesparse.parameters[
|
495
|
+
Cukesparse.parameters['yposition'].should eql 'YPOSITION=0'
|
496
496
|
end
|
497
497
|
end
|
498
498
|
|
@@ -503,11 +503,11 @@ describe '.parse_argv' do
|
|
503
503
|
end
|
504
504
|
|
505
505
|
it "should have a parameter of screenwidth" do
|
506
|
-
Cukesparse.parameters.should have_key
|
506
|
+
Cukesparse.parameters.should have_key 'screen_width'
|
507
507
|
end
|
508
508
|
|
509
509
|
it "should have a screenwidth parameter value of SCREENWIDTH=1280" do
|
510
|
-
Cukesparse.parameters[
|
510
|
+
Cukesparse.parameters['screen_width'].should eql 'SCREENWIDTH=1280'
|
511
511
|
end
|
512
512
|
end
|
513
513
|
|
@@ -518,11 +518,11 @@ describe '.parse_argv' do
|
|
518
518
|
end
|
519
519
|
|
520
520
|
it "should have a parameter of screenheight" do
|
521
|
-
Cukesparse.parameters.should have_key
|
521
|
+
Cukesparse.parameters.should have_key 'screen_height'
|
522
522
|
end
|
523
523
|
|
524
524
|
it "should have a screenheight parameter value of SCREENHEIGHT=1024" do
|
525
|
-
Cukesparse.parameters[
|
525
|
+
Cukesparse.parameters['screen_height'].should eql 'SCREENHEIGHT=1024'
|
526
526
|
end
|
527
527
|
end
|
528
528
|
|
@@ -533,11 +533,11 @@ describe '.parse_argv' do
|
|
533
533
|
end
|
534
534
|
|
535
535
|
it "should have a parameter of xposition" do
|
536
|
-
Cukesparse.parameters.should have_key
|
536
|
+
Cukesparse.parameters.should have_key 'xposition'
|
537
537
|
end
|
538
538
|
|
539
539
|
it "should have a xposition parameter value of XPOSITION=100" do
|
540
|
-
Cukesparse.parameters[
|
540
|
+
Cukesparse.parameters['xposition'].should eql 'XPOSITION=100'
|
541
541
|
end
|
542
542
|
end
|
543
543
|
|
@@ -548,11 +548,11 @@ describe '.parse_argv' do
|
|
548
548
|
end
|
549
549
|
|
550
550
|
it "should have a parameter of yposition" do
|
551
|
-
Cukesparse.parameters.should have_key
|
551
|
+
Cukesparse.parameters.should have_key 'yposition'
|
552
552
|
end
|
553
553
|
|
554
554
|
it "should have a yposition parameter value of YPOSITION=100" do
|
555
|
-
Cukesparse.parameters[
|
555
|
+
Cukesparse.parameters['yposition'].should eql 'YPOSITION=100'
|
556
556
|
end
|
557
557
|
end
|
558
558
|
|
@@ -563,11 +563,11 @@ describe '.parse_argv' do
|
|
563
563
|
end
|
564
564
|
|
565
565
|
it "should have a parameter of highlight" do
|
566
|
-
Cukesparse.parameters.should have_key
|
566
|
+
Cukesparse.parameters.should have_key 'highlight'
|
567
567
|
end
|
568
568
|
|
569
569
|
it "should have a highlight parameter value of HIGHLIGHT=TRUE" do
|
570
|
-
Cukesparse.parameters[
|
570
|
+
Cukesparse.parameters['highlight'].should eql 'HIGHLIGHT=TRUE'
|
571
571
|
end
|
572
572
|
end
|
573
573
|
|
@@ -578,11 +578,11 @@ describe '.parse_argv' do
|
|
578
578
|
end
|
579
579
|
|
580
580
|
it "should have a parameter of highlight" do
|
581
|
-
Cukesparse.parameters.should have_key
|
581
|
+
Cukesparse.parameters.should have_key 'highlight'
|
582
582
|
end
|
583
583
|
|
584
584
|
it "should have a highlight parameter value of HIGHLIGHT=TRUE" do
|
585
|
-
Cukesparse.parameters[
|
585
|
+
Cukesparse.parameters['highlight'].should eql 'HIGHLIGHT=TRUE'
|
586
586
|
end
|
587
587
|
end
|
588
588
|
|
@@ -593,11 +593,11 @@ describe '.parse_argv' do
|
|
593
593
|
end
|
594
594
|
|
595
595
|
it "should have a parameter of debug" do
|
596
|
-
Cukesparse.parameters.should have_key
|
596
|
+
Cukesparse.parameters.should have_key 'debug'
|
597
597
|
end
|
598
598
|
|
599
599
|
it "should have a debug parameter value of DEBUG=TRUE" do
|
600
|
-
Cukesparse.parameters[
|
600
|
+
Cukesparse.parameters['debug'].should eql 'DEBUG=TRUE'
|
601
601
|
end
|
602
602
|
end
|
603
603
|
end
|