[rspec-users] problem running rspec test with Webrat

David Chelimsky dchelimsky at gmail.com
Tue Mar 8 10:36:31 EST 2011


On Mar 8, 2011, at 8:10 AM, Amit Kulkarni wrote:

> Hi,
> I am trying to run rspec testcase using webrat but it is showing me an
> error as "undefined method `last_response' for #<Capybara::Document>"
> 
> Following are my configurations:
> Gemfile:
> 
> roup :development, :test do
> gem 'sqlite3-ruby', :require => 'sqlite3'
> gem "rspec",      "=2.4.0"
> gem "rspec-rails",      "2.4.0"
> #gem "rspec",      ">= 2.0.0.beta.16"
> #gem "rspec-rails",      ">= 2.0.0.beta.16"
> gem 'webrat', '>=0.7.2.beta.6', :git =>
> 'git://github.com/orangewise/webrat.git'
> gem "autotest"
> gem "autotest-rails"
> gem "factory_girl", "=2.0.0.beta1"
> gem 'capybara'
> gem "launchy"

You should use webrat or capybara, but not both.

Cheers,
David


More information about the rspec-users mailing list