I'm wondering what is the elegant way to say to rspec to use capybara instead of webrat. Also, I'm not using cucumber. My project is using: rails (3.0.0.rc) rspec (2.0.0.beta.19) capybara (0.3.9) I had success creating a file: spec/support/capybara.rb require 'capybara' require 'capybara/dsl' require 'capybara/rails' RSpec.configure do |config| config.include Capybara end Is there a better way to say to rspec to use capybara? []'s
on 2010-08-21 22:40
on 2010-08-22 00:19
On Aug 21, 2010, at 11:37 AM, narwen wrote: > > require 'capybara' > require 'capybara/dsl' > require 'capybara/rails' > > RSpec.configure do |config| > config.include Capybara > end > > Is there a better way to say to rspec to use capybara? In beta 20 you'll just need to add it to your Gemfile. See http://github.com/rspec/rspec-rails/issues/closed/#issue/49
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.