Thursday, December 22, 2011

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

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 and
rake tasks without
# having to type RAILS_ENV=test.
gem 'rspec-rails', '~> 2.7.0', group: :development
gem 'capybara-webkit', '~> 0.7.2'

# Debugging Tests
gem 'launchy'

# This allows for database transactions to refresh during testing with
# capybara and selenium.
gem 'database_cleaner', '~> 0.6.7'

As a dependency of capybara-webkit, I also installed the QT libraries.

I still don't know why I was getting the "Zip is not a module" error,
but I hope this helps someone in the future.

Thanks,
- Jeff

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate