ruby on rails - send_key gives segmentation fault in Rspec/Poltergeist -


in spec rails app, trying use approach similar this simulate enter key being pressed. have form text field assigned variable form, , try this:

form.native.send_key(:enter) 

this gives me segfault:

/users/<other path info>/spec/features/admin/users_spec.rb:78: [bug] segmentation fault ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-darwin13.3.0] 

the interesting part if use pry, type command on pry prompt, works fine, , desired effect achieved. appreciated!

edit

here code users_spec.rb:

    form = find("#term")     form.set("foo")     form.native.send_key(:enter) # line 78     expect(current_path).to eq admin_user_path(user2) 


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -