![]() | Capybara? Webrat?? What am I using?? |
|
13 Jun 2012, 16:09
Joshua Muheim (1 post) |
Hey everybody First of all: thank you for this very useful book. I’m really enjoying what I learn through it. But I’m facing some problems because of the fact that the book is already some years old, I guess. I have installed rvm and use Ruby 1.9.3, and I didn’t really get some Rails code examples to work properly, so I tried it with a 1.8.7 installation, but there I had some other problems which I couldn’t solve. So I re-did the code example myself (it’s the simulated_browser example) on Ruby 1.9.3, and it’s working quite nice but I had some other strange behavior now. In fact, I had an error message that the contain() was not found. After some searching on Google (and having seen the term capybara before somewhere in my error messages), somebody pointed out that when using capybara, contain() would not exist, but have_content(). So I tried it with have_content(), and it worked! I’m a bit confused now – what exactly am I using? Capybara or Webrat?? I thought I use Webrat, and Capybara is never mentioned in the RSpec book. So why/where did Capybara sneak in?? Was Webrat maybe replaced in the never Rails version I’m using? Some information about my Rails app… $ ruby -v $ gem list
abstract (1.0.0) Thanks a lot for help about this. |
|
12 Jul 2012, 05:03
Shaun Dashjian (2 posts) |
Josh, I have gone through the same steps you have and felt the same confusion. Here are some points that may help clarify things for you a little bit: |
|
22 Sep 2012, 03:18
Chad Walstrom (1 post) |
I am running into the same thing. To step back the versions of gems rather than what’s currently being shipped with Since I’m using the book as a reference for a new software project, I’ll stumble through the differences and apply the ideas. It’s still a great book, even with the lagging references. |
| You must be logged in to comment |

