terminus 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/bin/terminus +5 -5
  2. data/lib/capybara/driver/terminus.rb +24 -13
  3. data/lib/terminus.rb +21 -15
  4. data/lib/terminus/application.rb +6 -6
  5. data/lib/terminus/browser.rb +77 -60
  6. data/lib/terminus/client.rb +33 -16
  7. data/lib/terminus/client/browser.rb +10 -9
  8. data/lib/terminus/client/phantom.js +25 -3
  9. data/lib/terminus/client/phantomjs.rb +44 -7
  10. data/lib/terminus/connector.rb +2 -2
  11. data/lib/terminus/connector/server.rb +15 -15
  12. data/lib/terminus/connector/socket_handler.rb +11 -11
  13. data/lib/terminus/controller.rb +62 -26
  14. data/lib/terminus/headers.rb +25 -0
  15. data/lib/terminus/host.rb +6 -6
  16. data/lib/terminus/node.rb +36 -22
  17. data/lib/terminus/proxy.rb +81 -45
  18. data/lib/terminus/proxy/driver_body.rb +14 -15
  19. data/lib/terminus/proxy/external.rb +12 -6
  20. data/lib/terminus/proxy/rewrite.rb +7 -6
  21. data/lib/terminus/public/compiled/terminus-min.js +3 -3
  22. data/lib/terminus/public/compiled/terminus.js +225 -180
  23. data/lib/terminus/public/pathology.js +87 -87
  24. data/lib/terminus/public/terminus.js +138 -93
  25. data/lib/terminus/server.rb +7 -7
  26. data/lib/terminus/timeouts.rb +8 -8
  27. data/lib/terminus/views/bootstrap.erb +7 -7
  28. data/lib/terminus/views/index.erb +4 -4
  29. data/lib/terminus/views/infinite.html +4 -4
  30. data/spec/1.1/reports/android.txt +874 -0
  31. data/spec/{reports → 1.1/reports}/chrome.txt +72 -69
  32. data/spec/{reports → 1.1/reports}/firefox.txt +72 -69
  33. data/spec/{reports → 1.1/reports}/opera.txt +72 -69
  34. data/spec/{reports → 1.1/reports}/phantomjs.txt +72 -69
  35. data/spec/{reports → 1.1/reports}/safari.txt +72 -69
  36. data/spec/{spec_helper.rb → 1.1/spec_helper.rb} +5 -2
  37. data/spec/{terminus_driver_spec.rb → 1.1/terminus_driver_spec.rb} +2 -2
  38. data/spec/{terminus_session_spec.rb → 1.1/terminus_session_spec.rb} +2 -2
  39. data/spec/2.0/reports/android.txt +815 -0
  40. data/spec/2.0/reports/chrome.txt +806 -0
  41. data/spec/2.0/reports/firefox.txt +812 -0
  42. data/spec/2.0/reports/opera.txt +806 -0
  43. data/spec/2.0/reports/phantomjs.txt +803 -0
  44. data/spec/2.0/reports/safari.txt +806 -0
  45. data/spec/2.0/spec_helper.rb +21 -0
  46. data/spec/2.0/terminus_spec.rb +25 -0
  47. metadata +41 -32
  48. data/spec/reports/android.txt +0 -875
@@ -20,6 +20,7 @@ Capybara::Driver::Terminus
20
20
  should extract node attributes
21
21
  should extract boolean node attributes
22
22
  should allow retrieval of the value
23
+ should not swallow extra newlines in textarea
23
24
  should allow assignment of field value
24
25
  should extract node tag name
25
26
  should extract node visibility
@@ -711,6 +712,8 @@ Capybara::Session
711
712
  should reload the current context of the node automatically
712
713
  should reload a parent node automatically
713
714
  should reload a node automatically when using find
715
+ should not reload nodes which haven't been found
716
+ should reload nodes with options
714
717
  #find
715
718
  should allow triggering of custom JS events
716
719
  #body
@@ -758,114 +761,114 @@ Capybara::Session
758
761
 
759
762
  Failures:
760
763
 
761
- 1) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by id
764
+ 1) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by id
762
765
  Failure/Error: @session.attach_file "form_image", __FILE__
763
766
  Capybara::NotSupportedByDriverError:
764
767
  Capybara::NotSupportedByDriverError
765
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
766
- # ./lib/terminus/node.rb:52:in `set'
767
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
768
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
769
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
770
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
768
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
769
+ # ./lib/terminus/node.rb:66:in `set'
770
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
771
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
772
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
773
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
771
774
  # (eval):2:in `attach_file'
772
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:12:in `block (4 levels) in <top (required)>'
775
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:12:in `block (4 levels) in <top (required)>'
773
776
 
774
- 2) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by label
777
+ 2) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by label
775
778
  Failure/Error: @session.attach_file "Image", __FILE__
776
779
  Capybara::NotSupportedByDriverError:
777
780
  Capybara::NotSupportedByDriverError
778
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
779
- # ./lib/terminus/node.rb:52:in `set'
780
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
781
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
782
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
783
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
781
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
782
+ # ./lib/terminus/node.rb:66:in `set'
783
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
784
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
785
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
786
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
784
787
  # (eval):2:in `attach_file'
785
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:18:in `block (4 levels) in <top (required)>'
788
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:18:in `block (4 levels) in <top (required)>'
786
789
 
787
- 3) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by id
790
+ 3) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by id
788
791
  Failure/Error: @session.attach_file "form_document", @test_file_path
789
792
  Capybara::NotSupportedByDriverError:
790
793
  Capybara::NotSupportedByDriverError
791
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
792
- # ./lib/terminus/node.rb:52:in `set'
793
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
794
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
795
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
796
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
794
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
795
+ # ./lib/terminus/node.rb:66:in `set'
796
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
797
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
798
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
799
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
797
800
  # (eval):2:in `attach_file'
798
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:26:in `block (4 levels) in <top (required)>'
801
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:26:in `block (4 levels) in <top (required)>'
799
802
 
800
- 4) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by label
803
+ 4) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by label
801
804
  Failure/Error: @session.attach_file "Document", @test_file_path
802
805
  Capybara::NotSupportedByDriverError:
803
806
  Capybara::NotSupportedByDriverError
804
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
805
- # ./lib/terminus/node.rb:52:in `set'
806
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
807
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
808
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
809
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
807
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
808
+ # ./lib/terminus/node.rb:66:in `set'
809
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
810
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
811
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
812
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
810
813
  # (eval):2:in `attach_file'
811
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:32:in `block (4 levels) in <top (required)>'
814
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:32:in `block (4 levels) in <top (required)>'
812
815
 
813
- 5) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type text/plain when uploading a text file
816
+ 5) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type text/plain when uploading a text file
814
817
  Failure/Error: @session.attach_file "Document", @test_file_path
815
818
  Capybara::NotSupportedByDriverError:
816
819
  Capybara::NotSupportedByDriverError
817
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
818
- # ./lib/terminus/node.rb:52:in `set'
819
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
820
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
821
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
822
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
820
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
821
+ # ./lib/terminus/node.rb:66:in `set'
822
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
823
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
824
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
825
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
823
826
  # (eval):2:in `attach_file'
824
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:43:in `block (4 levels) in <top (required)>'
827
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:43:in `block (4 levels) in <top (required)>'
825
828
 
826
- 6) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type image/jpeg when uploading an image
829
+ 6) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type image/jpeg when uploading an image
827
830
  Failure/Error: @session.attach_file "Document", @test_jpg_file_path
828
831
  Capybara::NotSupportedByDriverError:
829
832
  Capybara::NotSupportedByDriverError
830
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
831
- # ./lib/terminus/node.rb:52:in `set'
832
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
833
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
834
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
835
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
833
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
834
+ # ./lib/terminus/node.rb:66:in `set'
835
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
836
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
837
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
838
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
836
839
  # (eval):2:in `attach_file'
837
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:49:in `block (4 levels) in <top (required)>'
840
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:49:in `block (4 levels) in <top (required)>'
838
841
 
839
- 7) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should not break when using HTML5 multiple file input
842
+ 7) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should not break when using HTML5 multiple file input
840
843
  Failure/Error: @session.attach_file "Multiple Documents", @test_file_path
841
844
  Capybara::NotSupportedByDriverError:
842
845
  Capybara::NotSupportedByDriverError
843
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
844
- # ./lib/terminus/node.rb:52:in `set'
845
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
846
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
847
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
848
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
846
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
847
+ # ./lib/terminus/node.rb:66:in `set'
848
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
849
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
850
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
851
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
849
852
  # (eval):2:in `attach_file'
850
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:55:in `block (4 levels) in <top (required)>'
853
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:55:in `block (4 levels) in <top (required)>'
851
854
 
852
- 8) Capybara::Session with terminus driver it should behave like session it should behave like fill_in#fill_in should fill in a text field by label without for
855
+ 8) Capybara::Session with terminus driver it should behave like session it should behave like fill_in #fill_in should fill in a text field by label without for
853
856
  Failure/Error: extract_results(@session)['street'].should == 'Avenue Q'
854
857
  expected: "Avenue Q"
855
858
  got: "Sesame street 66" (using ==)
856
- Shared Example Group: "fill_in" called from ./vendor/capybara/lib/capybara/spec/session.rb:94
857
- # ./vendor/capybara/lib/capybara/spec/session/fill_in_spec.rb:22:in `block (3 levels) in <top (required)>'
859
+ Shared Example Group: "fill_in" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:94
860
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/fill_in_spec.rb:22:in `block (3 levels) in <top (required)>'
858
861
 
859
- Finished in 2 minutes 47.51 seconds
860
- 506 examples, 8 failures
862
+ Finished in 2 minutes 48.67 seconds
863
+ 509 examples, 8 failures
861
864
 
862
865
  Failed examples:
863
866
 
864
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:11 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by id
865
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:17 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by label
866
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:25 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by id
867
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:31 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by label
868
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:42 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type text/plain when uploading a text file
869
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:48 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type image/jpeg when uploading an image
870
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:54 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should not break when using HTML5 multiple file input
871
- rspec ./vendor/capybara/lib/capybara/spec/session/fill_in_spec.rb:19 # Capybara::Session with terminus driver it should behave like session it should behave like fill_in#fill_in should fill in a text field by label without for
867
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:11 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by id
868
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:17 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by label
869
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:25 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by id
870
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:31 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by label
871
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:42 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type text/plain when uploading a text file
872
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:48 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type image/jpeg when uploading an image
873
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:54 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should not break when using HTML5 multiple file input
874
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/fill_in_spec.rb:19 # Capybara::Session with terminus driver it should behave like session it should behave like fill_in #fill_in should fill in a text field by label without for
@@ -20,6 +20,7 @@ Capybara::Driver::Terminus
20
20
  should extract node attributes
21
21
  should extract boolean node attributes
22
22
  should allow retrieval of the value
23
+ should not swallow extra newlines in textarea
23
24
  should allow assignment of field value
24
25
  should extract node tag name
25
26
  should extract node visibility
@@ -717,6 +718,8 @@ Capybara::Session
717
718
  should reload the current context of the node automatically
718
719
  should reload a parent node automatically
719
720
  should reload a node automatically when using find
721
+ should not reload nodes which haven't been found
722
+ should reload nodes with options
720
723
  #find
721
724
  should allow triggering of custom JS events
722
725
  #body
@@ -764,114 +767,114 @@ Capybara::Session
764
767
 
765
768
  Failures:
766
769
 
767
- 1) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by id
770
+ 1) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by id
768
771
  Failure/Error: @session.attach_file "form_image", __FILE__
769
772
  Capybara::NotSupportedByDriverError:
770
773
  Capybara::NotSupportedByDriverError
771
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
772
- # ./lib/terminus/node.rb:52:in `set'
773
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
774
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
775
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
776
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
774
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
775
+ # ./lib/terminus/node.rb:66:in `set'
776
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
777
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
778
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
779
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
777
780
  # (eval):2:in `attach_file'
778
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:12:in `block (4 levels) in <top (required)>'
781
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:12:in `block (4 levels) in <top (required)>'
779
782
 
780
- 2) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by label
783
+ 2) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by label
781
784
  Failure/Error: @session.attach_file "Image", __FILE__
782
785
  Capybara::NotSupportedByDriverError:
783
786
  Capybara::NotSupportedByDriverError
784
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
785
- # ./lib/terminus/node.rb:52:in `set'
786
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
787
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
788
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
789
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
787
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
788
+ # ./lib/terminus/node.rb:66:in `set'
789
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
790
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
791
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
792
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
790
793
  # (eval):2:in `attach_file'
791
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:18:in `block (4 levels) in <top (required)>'
794
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:18:in `block (4 levels) in <top (required)>'
792
795
 
793
- 3) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by id
796
+ 3) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by id
794
797
  Failure/Error: @session.attach_file "form_document", @test_file_path
795
798
  Capybara::NotSupportedByDriverError:
796
799
  Capybara::NotSupportedByDriverError
797
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
798
- # ./lib/terminus/node.rb:52:in `set'
799
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
800
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
801
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
802
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
800
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
801
+ # ./lib/terminus/node.rb:66:in `set'
802
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
803
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
804
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
805
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
803
806
  # (eval):2:in `attach_file'
804
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:26:in `block (4 levels) in <top (required)>'
807
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:26:in `block (4 levels) in <top (required)>'
805
808
 
806
- 4) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by label
809
+ 4) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by label
807
810
  Failure/Error: @session.attach_file "Document", @test_file_path
808
811
  Capybara::NotSupportedByDriverError:
809
812
  Capybara::NotSupportedByDriverError
810
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
811
- # ./lib/terminus/node.rb:52:in `set'
812
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
813
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
814
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
815
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
813
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
814
+ # ./lib/terminus/node.rb:66:in `set'
815
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
816
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
817
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
818
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
816
819
  # (eval):2:in `attach_file'
817
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:32:in `block (4 levels) in <top (required)>'
820
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:32:in `block (4 levels) in <top (required)>'
818
821
 
819
- 5) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type text/plain when uploading a text file
822
+ 5) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type text/plain when uploading a text file
820
823
  Failure/Error: @session.attach_file "Document", @test_file_path
821
824
  Capybara::NotSupportedByDriverError:
822
825
  Capybara::NotSupportedByDriverError
823
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
824
- # ./lib/terminus/node.rb:52:in `set'
825
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
826
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
827
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
828
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
826
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
827
+ # ./lib/terminus/node.rb:66:in `set'
828
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
829
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
830
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
831
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
829
832
  # (eval):2:in `attach_file'
830
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:43:in `block (4 levels) in <top (required)>'
833
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:43:in `block (4 levels) in <top (required)>'
831
834
 
832
- 6) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type image/jpeg when uploading an image
835
+ 6) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type image/jpeg when uploading an image
833
836
  Failure/Error: @session.attach_file "Document", @test_jpg_file_path
834
837
  Capybara::NotSupportedByDriverError:
835
838
  Capybara::NotSupportedByDriverError
836
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
837
- # ./lib/terminus/node.rb:52:in `set'
838
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
839
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
840
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
841
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
839
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
840
+ # ./lib/terminus/node.rb:66:in `set'
841
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
842
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
843
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
844
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
842
845
  # (eval):2:in `attach_file'
843
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:49:in `block (4 levels) in <top (required)>'
846
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:49:in `block (4 levels) in <top (required)>'
844
847
 
845
- 7) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should not break when using HTML5 multiple file input
848
+ 7) Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should not break when using HTML5 multiple file input
846
849
  Failure/Error: @session.attach_file "Multiple Documents", @test_file_path
847
850
  Capybara::NotSupportedByDriverError:
848
851
  Capybara::NotSupportedByDriverError
849
- Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88
850
- # ./lib/terminus/node.rb:52:in `set'
851
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set'
852
- # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until'
853
- # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set'
854
- # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file'
852
+ Shared Example Group: "attach_file" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:88
853
+ # ./lib/terminus/node.rb:66:in `set'
854
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `block in set'
855
+ # ./vendor/capybara/1.1/lib/capybara/node/base.rb:54:in `wait_until'
856
+ # ./vendor/capybara/1.1/lib/capybara/node/element.rb:79:in `set'
857
+ # ./vendor/capybara/1.1/lib/capybara/node/actions.rb:158:in `attach_file'
855
858
  # (eval):2:in `attach_file'
856
- # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:55:in `block (4 levels) in <top (required)>'
859
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:55:in `block (4 levels) in <top (required)>'
857
860
 
858
- 8) Capybara::Session with terminus driver it should behave like session it should behave like fill_in#fill_in should fill in a text field by label without for
861
+ 8) Capybara::Session with terminus driver it should behave like session it should behave like fill_in #fill_in should fill in a text field by label without for
859
862
  Failure/Error: extract_results(@session)['street'].should == 'Avenue Q'
860
863
  expected: "Avenue Q"
861
864
  got: "Sesame street 66" (using ==)
862
- Shared Example Group: "fill_in" called from ./vendor/capybara/lib/capybara/spec/session.rb:94
863
- # ./vendor/capybara/lib/capybara/spec/session/fill_in_spec.rb:22:in `block (3 levels) in <top (required)>'
865
+ Shared Example Group: "fill_in" called from ./vendor/capybara/1.1/lib/capybara/spec/session.rb:94
866
+ # ./vendor/capybara/1.1/lib/capybara/spec/session/fill_in_spec.rb:22:in `block (3 levels) in <top (required)>'
864
867
 
865
- Finished in 3 minutes 26.48 seconds
866
- 510 examples, 8 failures
868
+ Finished in 3 minutes 15.12 seconds
869
+ 513 examples, 8 failures
867
870
 
868
871
  Failed examples:
869
872
 
870
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:11 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by id
871
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:17 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by label
872
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:25 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by id
873
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:31 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by label
874
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:42 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type text/plain when uploading a text file
875
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:48 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type image/jpeg when uploading an image
876
- rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:54 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should not break when using HTML5 multiple file input
877
- rspec ./vendor/capybara/lib/capybara/spec/session/fill_in_spec.rb:19 # Capybara::Session with terminus driver it should behave like session it should behave like fill_in#fill_in should fill in a text field by label without for
873
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:11 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by id
874
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:17 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with normal form should set a file path by label
875
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:25 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by id
876
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:31 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should set a file path by label
877
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:42 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type text/plain when uploading a text file
878
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:48 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should send content type image/jpeg when uploading an image
879
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/attach_file_spec.rb:54 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file #attach_file with multipart form should not break when using HTML5 multiple file input
880
+ rspec ./vendor/capybara/1.1/lib/capybara/spec/session/fill_in_spec.rb:19 # Capybara::Session with terminus driver it should behave like session it should behave like fill_in #fill_in should fill in a text field by label without for
@@ -1,9 +1,11 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
3
 
4
- root = File.expand_path('../..', __FILE__)
4
+ root = File.expand_path('../../..', __FILE__)
5
+ $LOAD_PATH.unshift(root + '/vendor/capybara/1.1/xpath/lib')
6
+ $LOAD_PATH.unshift(root + '/vendor/capybara/1.1/lib')
5
7
 
6
- require root + '/vendor/capybara/spec/spec_helper'
8
+ require root + '/vendor/capybara/1.1/spec/spec_helper'
7
9
  require root + '/lib/terminus'
8
10
 
9
11
  Terminus.debug = ENV.has_key?('DEBUG')
@@ -12,6 +14,7 @@ Terminus.sockets = false if ENV.has_key?('NOSOCKET')
12
14
  case ENV['USER_AGENT']
13
15
  when 'auto' then Terminus.start_browser
14
16
  when 'PhantomJS' then Terminus.start_phantomjs
17
+ when 'Firefox' then Terminus.sockets = false
15
18
  end
16
19
 
17
20
  def select_browser
@@ -5,13 +5,13 @@ describe Capybara::Driver::Terminus do
5
5
  @driver = Capybara::Driver::Terminus.new(TestApp)
6
6
  select_browser
7
7
  end
8
-
8
+
9
9
  after do
10
10
  Terminus.browser.return_to_dock unless ENV['USER_AGENT']
11
11
  end
12
12
 
13
13
  single_window = %w[Android iPad iPhone PhantomJS].include?(ENV['USER_AGENT'])
14
-
14
+
15
15
  it_should_behave_like "driver"
16
16
  it_should_behave_like "driver with javascript support"
17
17
  it_should_behave_like "driver with resynchronization support"
@@ -6,11 +6,11 @@ describe Capybara::Session do
6
6
  @session = Capybara::Session.new(:terminus, TestApp)
7
7
  select_browser
8
8
  end
9
-
9
+
10
10
  after do
11
11
  Terminus.browser.return_to_dock unless ENV['USER_AGENT']
12
12
  end
13
-
13
+
14
14
  it_should_behave_like "session"
15
15
  it_should_behave_like "session with headers support"
16
16
  it_should_behave_like "session with javascript support"