terminus 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +72 -0
  3. data/lib/capybara/driver/terminus.rb +14 -4
  4. data/lib/terminus.rb +2 -1
  5. data/lib/terminus/browser.rb +30 -7
  6. data/lib/terminus/client.rb +1 -1
  7. data/lib/terminus/client/phantomjs.rb +1 -1
  8. data/lib/terminus/connector.rb +120 -3
  9. data/lib/terminus/controller.rb +1 -1
  10. data/lib/terminus/node.rb +17 -3
  11. data/lib/terminus/proxy.rb +6 -4
  12. data/lib/terminus/proxy/external.rb +14 -9
  13. data/lib/terminus/public/compiled/terminus-min.js +3 -3
  14. data/lib/terminus/public/compiled/terminus.js +62 -17
  15. data/lib/terminus/public/loader.js +2 -1
  16. data/lib/terminus/public/terminus.js +62 -17
  17. data/lib/terminus/views/bootstrap.erb +3 -3
  18. data/lib/terminus/views/index.erb +1 -1
  19. metadata +40 -85
  20. data/README.rdoc +0 -56
  21. data/lib/terminus/connector/server.rb +0 -142
  22. data/lib/terminus/connector/socket_handler.rb +0 -72
  23. data/spec/1.1/reports/android.txt +0 -874
  24. data/spec/1.1/reports/chrome.txt +0 -880
  25. data/spec/1.1/reports/firefox.txt +0 -879
  26. data/spec/1.1/reports/opera.txt +0 -880
  27. data/spec/1.1/reports/phantomjs.txt +0 -874
  28. data/spec/1.1/reports/safari.txt +0 -880
  29. data/spec/1.1/spec_helper.rb +0 -31
  30. data/spec/1.1/terminus_driver_spec.rb +0 -24
  31. data/spec/1.1/terminus_session_spec.rb +0 -19
  32. data/spec/2.0/reports/android.txt +0 -815
  33. data/spec/2.0/reports/chrome.txt +0 -806
  34. data/spec/2.0/reports/firefox.txt +0 -812
  35. data/spec/2.0/reports/opera.txt +0 -806
  36. data/spec/2.0/reports/phantomjs.txt +0 -803
  37. data/spec/2.0/reports/safari.txt +0 -806
  38. data/spec/2.0/spec_helper.rb +0 -21
  39. data/spec/2.0/terminus_spec.rb +0 -25
@@ -1,803 +0,0 @@
1
- Run options: exclude {:requires=>#<Proc:./vendor/capybara/2.0/lib/capybara/spec/spec_helper.rb:12>}
2
-
3
- Capybara::Session terminus
4
- #all
5
- should find all elements using the given locator
6
- should return an empty array when nothing was found
7
- should accept an XPath instance
8
- should raise an error when given invalid options
9
- with css selectors
10
- should find all elements using the given selector
11
- should find all elements when given a list of selectors
12
- with xpath selectors
13
- should find the first element using the given locator
14
- with css as default selector
15
- should find the first element using the given locator
16
- with visible filter
17
- should only find visible nodes
18
- should only find invisible nodes
19
- within a scope
20
- should find any element using the given locator
21
- #assert_selector
22
- should be true if the given selector is on the page
23
- should be false if the given selector is not on the page
24
- should use default selector
25
- should respect scopes
26
- with count
27
- should be true if the content is on the page the given number of times
28
- should be false if the content is on the page the given number of times
29
- should be false if the content isn't on the page at all
30
- with text
31
- should discard all matches where the given string is not contained
32
- should discard all matches where the given regexp is not matched
33
- #assert_no_selector
34
- should be false if the given selector is on the page
35
- should be true if the given selector is not on the page
36
- should use default selector
37
- should respect scopes
38
- with count
39
- should be false if the content is on the page the given number of times
40
- should be true if the content is on the page the wrong number of times
41
- should be true if the content isn't on the page at all
42
- with text
43
- should discard all matches where the given string is contained
44
- should discard all matches where the given regexp is matched
45
- #attach_file
46
- with normal form
47
- should set a file path by id (FAILED - 1)
48
- should set a file path by label (FAILED - 2)
49
- casts to string (FAILED - 3)
50
- with multipart form
51
- should set a file path by id (FAILED - 4)
52
- should set a file path by label (FAILED - 5)
53
- should not break if no file is submitted
54
- should send content type text/plain when uploading a text file (FAILED - 6)
55
- should send content type image/jpeg when uploading an image (FAILED - 7)
56
- should not break when using HTML5 multiple file input (FAILED - 8)
57
- should not break when using HTML5 multiple file input uploading multiple files (FAILED - 9)
58
- with a locator that doesn't exist
59
- should raise an error
60
- with a path that doesn't exist
61
- should raise an error
62
- #body
63
- should return the unmodified page body
64
- encoding of response between ascii and utf8
65
- should be valid with html entities
66
- should be valid without html entities
67
- #check
68
- should trigger associated events
69
- should check a checkbox by id
70
- should check a checkbox by label
71
- casts to string
72
- 'checked' attribute
73
- should be true if checked
74
- should be false if unchecked
75
- checking
76
- should not change an already checked checkbox
77
- should check an unchecked checkbox
78
- unchecking
79
- should not change an already unchecked checkbox
80
- should uncheck a checked checkbox
81
- with a locator that doesn't exist
82
- should raise an error
83
- with a disabled checkbox
84
- should raise an error
85
- #choose
86
- should choose a radio button by id
87
- should choose a radio button by label
88
- casts to string
89
- with a locator that doesn't exist
90
- should raise an error
91
- with a disabled radio button
92
- should raise an error
93
- #click_button
94
- should wait for asynchronous load
95
- casts to string
96
- should serialize and send valueless buttons that were clicked
97
- should not send image buttons that were not clicked
98
- should serialize and send GET forms
99
- should follow redirects
100
- should post pack to the same URL when no action given
101
- should post pack to the same URL when blank action given
102
- ignores disabled buttons
103
- should encode complex field names, like array[][value]
104
- with multiple values with the same name
105
- should use the latest given value
106
- with a form that has a relative url as an action
107
- should post to the correct url
108
- with a form that has no action specified
109
- should post to the correct url
110
- with value given on a submit button
111
- on a form with HTML5 fields
112
- should serialise and submit search fields
113
- should serialise and submit email fields
114
- should serialise and submit url fields
115
- should serialise and submit tel fields
116
- should serialise and submit color fields
117
- on an HTML4 form
118
- should serialize and submit text fields
119
- should escape fields when submitting
120
- should serialize and submit password fields
121
- should serialize and submit hidden fields
122
- should not serialize fields from other forms
123
- should submit the button that was clicked, but not other buttons
124
- should serialize radio buttons
125
- should serialize check boxes
126
- should serialize text areas
127
- should serialize select tag with values
128
- should serialize select tag without values
129
- should serialize first option for select tag with no selection
130
- should not serialize a select tag without options
131
- should not submit disabled fields
132
- with id given on a submit button
133
- should submit the associated form
134
- should work with partial matches
135
- with title given on a submit button
136
- should submit the associated form
137
- should work with partial matches
138
- with alt given on an image button
139
- should submit the associated form
140
- should work with partial matches
141
- with value given on an image button
142
- should submit the associated form
143
- should work with partial matches
144
- with id given on an image button
145
- should submit the associated form
146
- with title given on an image button
147
- should submit the associated form
148
- should work with partial matches
149
- with text given on a button defined by <button> tag
150
- should submit the associated form
151
- should work with partial matches
152
- with id given on a button defined by <button> tag
153
- should submit the associated form
154
- should serialize and send GET forms
155
- with value given on a button defined by <button> tag
156
- should submit the associated form
157
- should work with partial matches
158
- with title given on a button defined by <button> tag
159
- should submit the associated form
160
- should work with partial matches
161
- with a locator that doesn't exist
162
- should raise an error
163
- #click_link_or_button
164
- should click on a link
165
- should click on a button
166
- should click on a button with no type attribute
167
- should be aliased as click_on
168
- should wait for asynchronous load
169
- casts to string
170
- with a locator that doesn't exist
171
- should raise an error
172
- #click_link
173
- should wait for asynchronous load
174
- casts to string
175
- should follow relative links
176
- should follow protocol relative links
177
- should follow redirects
178
- should follow redirects
179
- should add query string to current URL with naked query string
180
- should do nothing on anchor links
181
- should do nothing on URL+anchor links for the same page
182
- should follow link on URL+anchor links for a different page
183
- raise an error with links with no href
184
- with id given
185
- should take user to the linked page
186
- with text given
187
- should take user to the linked page
188
- should accept partial matches
189
- with title given
190
- should take user to the linked page
191
- should accept partial matches
192
- with alternative text given to a contained image
193
- should take user to the linked page
194
- should accept partial matches
195
- with a locator that doesn't exist
196
- should raise an error
197
- #current_url, #current_path, #current_host
198
- is affected by visiting a page directly
199
- returns to the app host when visiting a relative url
200
- is affected by setting Capybara.app_host
201
- is unaffected by following a relative link
202
- is affected by following an absolute link
203
- is unaffected by posting through a relative form
204
- is affected by posting through an absolute form
205
- is affected by following a redirect
206
- is affected by pushState
207
- is affected by replaceState
208
- #evaluate_script
209
- should evaluate the given script and return whatever it produces
210
- #execute_script
211
- should execute the given script and return nothing
212
- #fill_in
213
- should fill in a text field by id
214
- should fill in a text field by name
215
- should fill in a text field by label without for
216
- should fill in a url field by label without for
217
- should fill in a textarea by id
218
- should fill in a textarea by label
219
- should fill in a textarea by name
220
- should fill in a password field by id
221
- should fill in a field with a custom type
222
- should fill in a field without a type
223
- should fill in a text field respecting its maxlength attribute
224
- should fill in a password field by name
225
- should fill in a password field by label
226
- should fill in a password field by name
227
- should throw an exception if a hash containing 'with' is not provided
228
- should wait for asynchronous load
229
- casts to string
230
- on a pre-populated textfield with a reformatting onchange
231
- should only trigger onchange once
232
- with ignore_hidden_fields
233
- should not find a hidden field
234
- with a locator that doesn't exist
235
- should raise an error
236
- on a disabled field
237
- should raise an error
238
- #find_button
239
- should find any button
240
- casts to string
241
- should raise error if the button doesn't exist
242
- #find_by_id
243
- should find any element by id
244
- casts to string
245
- should raise error if no element with id is found
246
- #find_field
247
- should find any field
248
- casts to string
249
- should raise error if the field doesn't exist
250
- should be aliased as 'field_labeled' for webrat compatibility
251
- #find_link
252
- should find any field
253
- casts to string
254
- should raise error if the field doesn't exist
255
- #find
256
- should find the first element using the given locator
257
- should find the first element using the given locator and options
258
- should raise an error if there are multiple matches
259
- should wait for asynchronous load
260
- should raise ElementNotFound with a useful default message if nothing was found
261
- should accept an XPath instance
262
- with frozen time
263
- raises an error suggesting that Capybara is stuck in time
264
- with css selectors
265
- should find the first element using the given locator
266
- with xpath selectors
267
- should find the first element using the given locator
268
- with custom selector
269
- should use the custom selector
270
- with custom selector with :for option
271
- should use the selector when it matches the :for option
272
- with custom selector with custom filter
273
- should find elements that match the filter
274
- should not find elements that don't match the filter
275
- with css as default selector
276
- should find the first element using the given locator
277
- within a scope
278
- should find the an element using the given locator
279
- #first
280
- should find the first element using the given locator
281
- should return nil when nothing was found
282
- should accept an XPath instance
283
- with css selectors
284
- should find the first element using the given selector
285
- with xpath selectors
286
- should find the first element using the given locator
287
- with css as default selector
288
- should find the first element using the given locator
289
- with visible filter
290
- should only find visible nodes if true given
291
- should include invisible nodes if false given
292
- within a scope
293
- should find the first element using the given locator
294
- #has_button?
295
- should be true if the given button is on the page
296
- should be false if the given button is not on the page
297
- #has_no_button?
298
- should be true if the given button is on the page
299
- should be false if the given button is not on the page
300
- #has_css?
301
- should be true if the given selector is on the page
302
- should be false if the given selector is not on the page
303
- should respect scopes
304
- should wait for content to appear
305
- with between
306
- should be true if the content occurs within the range given
307
- should be false if the content occurs more or fewer times than range
308
- with count
309
- should be true if the content occurs the given number of times
310
- should be false if the content occurs a different number of times than the given
311
- should coerce count to an integer
312
- with maximum
313
- should be true when content occurs same or fewer times than given
314
- should be false when content occurs more times than given
315
- should coerce maximum to an integer
316
- with minimum
317
- should be true when content occurs same or more times than given
318
- should be false when content occurs fewer times than given
319
- should coerce minimum to an integer
320
- with text
321
- should discard all matches where the given string is not contained
322
- should discard all matches where the given regexp is not matched
323
- #has_no_css?
324
- should be false if the given selector is on the page
325
- should be true if the given selector is not on the page
326
- should respect scopes
327
- should wait for content to disappear
328
- with between
329
- should be false if the content occurs within the range given
330
- should be true if the content occurs more or fewer times than range
331
- with count
332
- should be false if the content is on the page the given number of times
333
- should be true if the content is on the page the given number of times
334
- should coerce count to an integer
335
- with maximum
336
- should be false when content occurs same or fewer times than given
337
- should be true when content occurs more times than given
338
- should coerce maximum to an integer
339
- with minimum
340
- should be false when content occurs same or more times than given
341
- should be true when content occurs fewer times than given
342
- should coerce minimum to an integer
343
- with text
344
- should discard all matches where the given string is not contained
345
- should discard all matches where the given regexp is not matched
346
- #has_field
347
- should be true if the field is on the page
348
- should be false if the field is not on the page
349
- with value
350
- should be true if a field with the given value is on the page
351
- should be false if the given field is not on the page
352
- should be true after the field has been filled in with the given value
353
- should be false after the field has been filled in with a different value
354
- with type
355
- should be true if a field with the given type is on the page
356
- should be false if the given field is not on the page
357
- #has_no_field
358
- should be false if the field is on the page
359
- should be true if the field is not on the page
360
- with value
361
- should be false if a field with the given value is on the page
362
- should be true if the given field is not on the page
363
- should be false after the field has been filled in with the given value
364
- should be true after the field has been filled in with a different value
365
- with type
366
- should be false if a field with the given type is on the page
367
- should be true if the given field is not on the page
368
- #has_checked_field?
369
- should be true if a checked field is on the page
370
- should be false if an unchecked field is on the page
371
- should be false if no field is on the page
372
- should be true after an unchecked checkbox is checked
373
- should be false after a checked checkbox is unchecked
374
- should be true after an unchecked radio button is chosen
375
- should be false after another radio button in the group is chosen
376
- #has_no_checked_field?
377
- should be false if a checked field is on the page
378
- should be true if an unchecked field is on the page
379
- should be true if no field is on the page
380
- #has_unchecked_field?
381
- should be false if a checked field is on the page
382
- should be true if an unchecked field is on the page
383
- should be false if no field is on the page
384
- should be false after an unchecked checkbox is checked
385
- should be true after a checked checkbox is unchecked
386
- should be false after an unchecked radio button is chosen
387
- should be true after another radio button in the group is chosen
388
- #has_no_unchecked_field?
389
- should be true if a checked field is on the page
390
- should be false if an unchecked field is on the page
391
- should be true if no field is on the page
392
- #has_link?
393
- should be true if the given link is on the page
394
- should be false if the given link is not on the page
395
- #has_no_link?
396
- should be false if the given link is on the page
397
- should be true if the given link is not on the page
398
- #has_select?
399
- should be true if the field is on the page
400
- should be false if the field is not on the page
401
- with selected value
402
- should be true if a field with the given value is on the page
403
- should be false if the given field is not on the page
404
- should be true after the given value is selected
405
- should be false after a different value is selected
406
- should be true after the given values are selected
407
- should be false after one of the values is unselected
408
- with exact options
409
- should be true if a field with the given options is on the page
410
- should be false if the given field is not on the page
411
- with partial options
412
- should be true if a field with the given partial options is on the page
413
- should be false if a field with the given partial options is not on the page
414
- #has_no_select?
415
- should be false if the field is on the page
416
- should be true if the field is not on the page
417
- with selected value
418
- should be false if a field with the given value is on the page
419
- should be true if the given field is not on the page
420
- should be false after the given value is selected
421
- should be true after a different value is selected
422
- should be false after the given values are selected
423
- should be true after one of the values is unselected
424
- with exact options
425
- should be false if a field with the given options is on the page
426
- should be true if the given field is not on the page
427
- with partial options
428
- should be false if a field with the given partial options is on the page
429
- should be true if a field with the given partial options is not on the page
430
- #has_selector?
431
- should be true if the given selector is on the page
432
- should be false if the given selector is not on the page
433
- should use default selector
434
- should respect scopes
435
- with count
436
- should be true if the content is on the page the given number of times
437
- should be false if the content is on the page the given number of times
438
- should be false if the content isn't on the page at all
439
- with text
440
- should discard all matches where the given string is not contained
441
- should discard all matches where the given regexp is not matched
442
- #has_no_selector?
443
- should be false if the given selector is on the page
444
- should be true if the given selector is not on the page
445
- should use default selector
446
- should respect scopes
447
- with count
448
- should be false if the content is on the page the given number of times
449
- should be true if the content is on the page the wrong number of times
450
- should be true if the content isn't on the page at all
451
- with text
452
- should discard all matches where the given string is contained
453
- should discard all matches where the given regexp is matched
454
- #has_table?
455
- should be true if the table is on the page
456
- should be false if the table is not on the page
457
- #has_no_table?
458
- should be false if the table is on the page
459
- should be true if the table is not on the page
460
- #has_text?
461
- should be true if the given text is on the page at least once
462
- should be true if scoped to an element which has the text
463
- should be false if scoped to an element which does not have the text
464
- should ignore tags
465
- should ignore extra whitespace and newlines
466
- should ignore whitespace and newlines in the search string
467
- should be false if the given text is not on the page
468
- should handle single quotes in the text
469
- should handle double quotes in the text
470
- should handle mixed single and double quotes in the text
471
- should be false if text is in the title tag in the head
472
- should be false if text is inside a script tag in the body
473
- should be false if the given text is on the page but not visible
474
- should be true if the text in the page matches given regexp
475
- should be false if the text in the page doesn't match given regexp
476
- should escape any characters that would have special meaning in a regexp
477
- should accept non-string parameters
478
- should be true when passed nil
479
- should wait for text to appear
480
- #has_no_text?
481
- should be false if the given text is on the page at least once
482
- should be false if scoped to an element which has the text
483
- should be true if scoped to an element which does not have the text
484
- should ignore tags
485
- should be true if the given text is not on the page
486
- should handle single quotes in the text
487
- should handle double quotes in the text
488
- should handle mixed single and double quotes in the text
489
- should be true if text is in the title tag in the head
490
- should be true if text is inside a script tag in the body
491
- should be true if the given text is on the page but not visible
492
- should be true if the text in the page doesn't match given regexp
493
- should be false if the text in the page matches given regexp
494
- should escape any characters that would have special meaning in a regexp
495
- should wait for text to disappear
496
- #has_xpath?
497
- should be true if the given selector is on the page
498
- should be false if the given selector is not on the page
499
- should use xpath even if default selector is CSS
500
- should respect scopes
501
- should wait for content to appear
502
- with count
503
- should be true if the content occurs the given number of times
504
- should be false if the content occurs a different number of times than the given
505
- with text
506
- should discard all matches where the given string is not contained
507
- should discard all matches where the given regexp is not matched
508
- #has_no_xpath?
509
- should be false if the given selector is on the page
510
- should be true if the given selector is not on the page
511
- should use xpath even if default selector is CSS
512
- should respect scopes
513
- should wait for content to disappear
514
- with count
515
- should be false if the content occurs the given number of times
516
- should be true if the content occurs a different number of times than the given
517
- with text
518
- should discard all matches where the given string is contained
519
- should discard all matches where the given regexp is matched
520
- #response_headers
521
- should return response headers
522
- #html
523
- should return the unmodified page body
524
- should return the current state of the page
525
- #source
526
- should return the unmodified page source
527
- should return the current state of the page
528
- #body
529
- should return the unmodified page source
530
- should return the current state of the page
531
- node
532
- should act like a session object
533
- should scope CSS selectors
534
- #parent
535
- should have a reference to its parent if there is one
536
- #text
537
- should extract node texts
538
- should return document text on /html selector
539
- #[]
540
- should extract node attributes
541
- should extract boolean node attributes
542
- #value
543
- should allow retrieval of the value
544
- should not swallow extra newlines in textarea
545
- #set
546
- should allow assignment of field value
547
- should fill the field even if the caret was not at the end
548
- #tag_name
549
- should extract node tag name
550
- #visible?
551
- should extract node visibility
552
- #checked?
553
- should extract node checked state
554
- #selected?
555
- should extract node selected state
556
- #==
557
- preserve object identity
558
- #trigger
559
- should allow triggering of custom JS events
560
- #drag_to
561
- should drag and drop an object
562
- #reload
563
- without automatic reload
564
- should reload the current context of the node
565
- should reload a parent node
566
- should not automatically reload
567
- with automatic reload
568
- should reload the current context of the node automatically
569
- should reload a parent node automatically
570
- should reload a node automatically when using find
571
- should not reload nodes which haven't been found
572
- should reload nodes with options
573
- #reset_session!
574
- removes cookies
575
- resets current url, host, path
576
- resets page body
577
- raises any errors caught inside the server
578
- #status_code
579
- should return response codes
580
- #save_page
581
- saves the page in the root directory
582
- generates a sensible filename
583
- can store files in a specified directory
584
- uses the given filename
585
- returns the filename
586
- #save_screenshot
587
- should generate PNG file
588
- #select
589
- should return value of the first option
590
- should return value of the selected option
591
- should return the value attribute rather than content if present
592
- should select an option from a select box by id
593
- should select an option from a select box by label
594
- should select an option without giving a select box
595
- should escape quotes
596
- should obey from
597
- show match labels with preceding or trailing whitespace
598
- casts to string
599
- with a locator that doesn't exist
600
- should raise an error
601
- with an option that doesn't exist
602
- should raise an error
603
- on a disabled select
604
- should raise an error
605
- with multiple select
606
- should return an empty value
607
- should return value of the selected options
608
- should select one option
609
- should select multiple options
610
- should remain selected if already selected
611
- should return value attribute rather than content if present
612
- #text
613
- should print the text of the page
614
- should strip whitespace
615
- with css as default selector
616
- should print the text of the page
617
- #uncheck
618
- should uncheck a checkbox by id
619
- should uncheck a checkbox by label
620
- casts to string
621
- #unselect
622
- with multiple select
623
- should unselect an option from a select box by id
624
- should unselect an option without a select box
625
- should unselect an option from a select box by label
626
- should favour exact matches to option labels
627
- should escape quotes
628
- casts to string
629
- with single select
630
- should raise an error
631
- with a locator that doesn't exist
632
- should raise an error
633
- with an option that doesn't exist
634
- should raise an error
635
- #visit
636
- should fetch a response from the driver with a relative url
637
- should fetch a response from the driver with an absolute url with a port
638
- should send no referer when visiting a page
639
- should send no referer when visiting a second page
640
- should send a referer when following a link
641
- should preserve the original referer URL when following a redirect
642
- should send a referer when submitting a form
643
- when Capybara.always_include_port is true
644
- should fetch a response from the driver with an absolute url without a port
645
- without a server
646
- should respect `app_host`
647
- should visit a fully qualified URL
648
- #within_frame
649
- should find the div in frameOne
650
- should find the div in FrameTwo
651
- should find the text div in the main window after finding text in frameOne
652
- should find the text div in the main window after finding text in frameTwo
653
- should return the result of executing the block
654
- #within
655
- should raise an error if the scope is not found on the page
656
- should restore the scope when an error is raised
657
- should fill in a field and click a button
658
- with CSS selector
659
- should click links in the given scope
660
- should assert content in the given scope
661
- should accept additional options
662
- with XPath selector
663
- should click links in the given scope
664
- with the default selector
665
- should use XPath
666
- with Node rather than selector
667
- should click links in the given scope
668
- with the default selector set to CSS
669
- should use CSS
670
- with nested scopes
671
- should respect the inner scope
672
- should respect the outer scope
673
- #within_fieldset
674
- should restrict scope to a fieldset given by id
675
- should restrict scope to a fieldset given by legend
676
- #within_table
677
- should restrict scope to a fieldset given by id
678
- should restrict scope to a fieldset given by legend
679
-
680
- Failures:
681
-
682
- 1) Capybara::Session terminus #attach_file with normal form should set a file path by id
683
- Failure/Error: @session.attach_file "form_image", __FILE__
684
- Capybara::NotSupportedByDriverError:
685
- Capybara::NotSupportedByDriverError
686
- # ./lib/terminus/node.rb:66:in `set'
687
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `block in set'
688
- # ./vendor/capybara/2.0/lib/capybara/node/base.rb:77:in `synchronize'
689
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `set'
690
- # ./vendor/capybara/2.0/lib/capybara/node/actions.rb:144:in `attach_file'
691
- # ./vendor/capybara/2.0/lib/capybara/session.rb:338:in `block (2 levels) in <class:Session>'
692
- # ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:11:in `block (3 levels) in <top (required)>'
693
-
694
- 2) Capybara::Session terminus #attach_file with normal form should set a file path by label
695
- Failure/Error: @session.attach_file "Image", __FILE__
696
- Capybara::NotSupportedByDriverError:
697
- Capybara::NotSupportedByDriverError
698
- # ./lib/terminus/node.rb:66:in `set'
699
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `block in set'
700
- # ./vendor/capybara/2.0/lib/capybara/node/base.rb:77:in `synchronize'
701
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `set'
702
- # ./vendor/capybara/2.0/lib/capybara/node/actions.rb:144:in `attach_file'
703
- # ./vendor/capybara/2.0/lib/capybara/session.rb:338:in `block (2 levels) in <class:Session>'
704
- # ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:17:in `block (3 levels) in <top (required)>'
705
-
706
- 3) Capybara::Session terminus #attach_file with normal form casts to string
707
- Failure/Error: @session.attach_file :"form_image", __FILE__
708
- Capybara::NotSupportedByDriverError:
709
- Capybara::NotSupportedByDriverError
710
- # ./lib/terminus/node.rb:66:in `set'
711
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `block in set'
712
- # ./vendor/capybara/2.0/lib/capybara/node/base.rb:77:in `synchronize'
713
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `set'
714
- # ./vendor/capybara/2.0/lib/capybara/node/actions.rb:144:in `attach_file'
715
- # ./vendor/capybara/2.0/lib/capybara/session.rb:338:in `block (2 levels) in <class:Session>'
716
- # ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:23:in `block (3 levels) in <top (required)>'
717
-
718
- 4) Capybara::Session terminus #attach_file with multipart form should set a file path by id
719
- Failure/Error: @session.attach_file "form_document", @test_file_path
720
- Capybara::NotSupportedByDriverError:
721
- Capybara::NotSupportedByDriverError
722
- # ./lib/terminus/node.rb:66:in `set'
723
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `block in set'
724
- # ./vendor/capybara/2.0/lib/capybara/node/base.rb:77:in `synchronize'
725
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `set'
726
- # ./vendor/capybara/2.0/lib/capybara/node/actions.rb:144:in `attach_file'
727
- # ./vendor/capybara/2.0/lib/capybara/session.rb:338:in `block (2 levels) in <class:Session>'
728
- # ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:31:in `block (3 levels) in <top (required)>'
729
-
730
- 5) Capybara::Session terminus #attach_file with multipart form should set a file path by label
731
- Failure/Error: @session.attach_file "Single Document", @test_file_path
732
- Capybara::NotSupportedByDriverError:
733
- Capybara::NotSupportedByDriverError
734
- # ./lib/terminus/node.rb:66:in `set'
735
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `block in set'
736
- # ./vendor/capybara/2.0/lib/capybara/node/base.rb:77:in `synchronize'
737
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `set'
738
- # ./vendor/capybara/2.0/lib/capybara/node/actions.rb:144:in `attach_file'
739
- # ./vendor/capybara/2.0/lib/capybara/session.rb:338:in `block (2 levels) in <class:Session>'
740
- # ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:37:in `block (3 levels) in <top (required)>'
741
-
742
- 6) Capybara::Session terminus #attach_file with multipart form should send content type text/plain when uploading a text file
743
- Failure/Error: @session.attach_file "Single Document", @test_file_path
744
- Capybara::NotSupportedByDriverError:
745
- Capybara::NotSupportedByDriverError
746
- # ./lib/terminus/node.rb:66:in `set'
747
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `block in set'
748
- # ./vendor/capybara/2.0/lib/capybara/node/base.rb:77:in `synchronize'
749
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `set'
750
- # ./vendor/capybara/2.0/lib/capybara/node/actions.rb:144:in `attach_file'
751
- # ./vendor/capybara/2.0/lib/capybara/session.rb:338:in `block (2 levels) in <class:Session>'
752
- # ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:48:in `block (3 levels) in <top (required)>'
753
-
754
- 7) Capybara::Session terminus #attach_file with multipart form should send content type image/jpeg when uploading an image
755
- Failure/Error: @session.attach_file "Single Document", @test_jpg_file_path
756
- Capybara::NotSupportedByDriverError:
757
- Capybara::NotSupportedByDriverError
758
- # ./lib/terminus/node.rb:66:in `set'
759
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `block in set'
760
- # ./vendor/capybara/2.0/lib/capybara/node/base.rb:77:in `synchronize'
761
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `set'
762
- # ./vendor/capybara/2.0/lib/capybara/node/actions.rb:144:in `attach_file'
763
- # ./vendor/capybara/2.0/lib/capybara/session.rb:338:in `block (2 levels) in <class:Session>'
764
- # ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:54:in `block (3 levels) in <top (required)>'
765
-
766
- 8) Capybara::Session terminus #attach_file with multipart form should not break when using HTML5 multiple file input
767
- Failure/Error: @session.attach_file "Multiple Documents", @test_file_path
768
- Capybara::NotSupportedByDriverError:
769
- Capybara::NotSupportedByDriverError
770
- # ./lib/terminus/node.rb:66:in `set'
771
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `block in set'
772
- # ./vendor/capybara/2.0/lib/capybara/node/base.rb:77:in `synchronize'
773
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `set'
774
- # ./vendor/capybara/2.0/lib/capybara/node/actions.rb:144:in `attach_file'
775
- # ./vendor/capybara/2.0/lib/capybara/session.rb:338:in `block (2 levels) in <class:Session>'
776
- # ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:60:in `block (3 levels) in <top (required)>'
777
-
778
- 9) Capybara::Session terminus #attach_file with multipart form should not break when using HTML5 multiple file input uploading multiple files
779
- Failure/Error: @session.attach_file "Multiple Documents", [@test_file_path, @another_test_file_path]
780
- Capybara::NotSupportedByDriverError:
781
- Capybara::NotSupportedByDriverError
782
- # ./lib/terminus/node.rb:66:in `set'
783
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `block in set'
784
- # ./vendor/capybara/2.0/lib/capybara/node/base.rb:77:in `synchronize'
785
- # ./vendor/capybara/2.0/lib/capybara/node/element.rb:79:in `set'
786
- # ./vendor/capybara/2.0/lib/capybara/node/actions.rb:144:in `attach_file'
787
- # ./vendor/capybara/2.0/lib/capybara/session.rb:338:in `block (2 levels) in <class:Session>'
788
- # ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:68:in `block (3 levels) in <top (required)>'
789
-
790
- Finished in 6 minutes 42.61 seconds
791
- 494 examples, 9 failures
792
-
793
- Failed examples:
794
-
795
- rspec ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:10 # Capybara::Session terminus #attach_file with normal form should set a file path by id
796
- rspec ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:16 # Capybara::Session terminus #attach_file with normal form should set a file path by label
797
- rspec ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:22 # Capybara::Session terminus #attach_file with normal form casts to string
798
- rspec ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:30 # Capybara::Session terminus #attach_file with multipart form should set a file path by id
799
- rspec ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:36 # Capybara::Session terminus #attach_file with multipart form should set a file path by label
800
- rspec ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:47 # Capybara::Session terminus #attach_file with multipart form should send content type text/plain when uploading a text file
801
- rspec ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:53 # Capybara::Session terminus #attach_file with multipart form should send content type image/jpeg when uploading an image
802
- rspec ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:59 # Capybara::Session terminus #attach_file with multipart form should not break when using HTML5 multiple file input
803
- rspec ./vendor/capybara/2.0/lib/capybara/spec/session/attach_file_spec.rb:66 # Capybara::Session terminus #attach_file with multipart form should not break when using HTML5 multiple file input uploading multiple files