[rspec-users] Elegant way to configure rspec and capybara
David Chelimsky
dchelimsky at gmail.com
Sat Aug 21 18:17:56 EDT 2010
On Aug 21, 2010, at 11:37 AM, narwen wrote:
> 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?
In beta 20 you'll just need to add it to your Gemfile.
See http://github.com/rspec/rspec-rails/issues/closed/#issue/49
> []'s
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users
mailing list