Re: [rspec-users] RSpec/rails & Capybara: #within

2012-07-23 Thread Justin Ko
On Jul 22, 2012, at 3:08 PM, Salvatore Pelligra wrote: > I'm new with Capybara and after a good amount of google, I still can't > figure out how the #within methods works! > I can use it only if I call visit before? There's no way to use it on a > string, like the `page = Capybara.string(html_str

[rspec-users] RSpec/rails & Capybara: #within

2012-07-22 Thread Salvatore Pelligra
I'm new with Capybara and after a good amount of google, I still can't figure out how the #within methods works! I can use it only if I call visit before? There's no way to use it on a string, like the `page = Capybara.string(html_string)` trick? When describe a view, I want something like that: d