Forum: RSpec upgrading rails 3.0.0.rc.2 and rspec 2.0.0.beta.20 breaks my view tests

Posted by nathanvda (Guest)
on 2010-08-24 10:12
(Received via mailing list)
I was using rails 3 rc and rspec beta 19, and everything worked fine.
Today i updated and i get errors on the following methods:


rendered.should contain("bla")

rendered.should have_xpath(//table//tr)

rendered.should have_selector('#foo')


What should i do?
Posted by nathanvda (Guest)
on 2010-08-24 12:23
(Received via mailing list)
I rolled back to version 2.0.0.beta.19 and everything is fine again.
Posted by David Chelimsky (Guest)
on 2010-08-24 13:50
(Received via mailing list)
On Aug 24, 2010, at 5:09 AM, nathanvda wrote:
>> What should i do?
> I rolled back to version 2.0.0.beta.19 and everything is fine again.

Beta 20 removes the dependency on webrat, so you can choose webrat or 
capybara. This means you need to add the dependency to the Gemfile 
yourself. This is documented in the README [1] and upgrade notes [2], 
which are referenced in the post-install message you get when you 
install rspec-rails.

HTH,
David

[1] http://github.com/rspec/rspec-rails
[2] http://github.com/rspec/rspec-rails/blob/master/Upgrade.markdown
Posted by nathanvda (Guest)
on 2010-08-24 17:43
(Received via mailing list)
Great David, thank you for your help!
I did look at the docs but did not find that straighaway.
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
No account? Register here.