[Rails] Re: Rspec :js = true issue (Rails 3)

2011-12-22 Thread Jeff Miller
UPDATE: I got this working by using tips from the following blog: http://www.neotericdesign.com/blog/capybara-webkit-rspec-and-javascript I changed my gemfile to use the following gems: # For Testing w/ Javascript support. # Rspec needs to be in the development group to expose generators

[Rails] Re: Rspec :js = true issue (Rails 3)

2011-12-22 Thread Jeff Miller
Okay, maybe I spoke too soon. Can't help but be hopeful, lol. I have a bunch of fill_in statements for the page I'm testing, such as: fill_in shopper_first_name, with: 'Jeffrey' etc... however, although I'm not getting an error anymore, it DOES NOT fill in the text UNLESS I get rid of :js =

[Rails] Re: Rspec :js = true issue (Rails 3)

2011-12-22 Thread Jeff Miller
*headslam* I just needed to RTFM more closely. I assumed the fields weren't being populated because I was using launchy to save_and_open_page to see if it had done so. Capybara-webkit doesn't instantiate a browser though, it access the renderer (webkit) directly. This is working now :P --