I'm running rails 3.0.0 on ruby 1.9.2p0.
I've rspec beta 22 with Capybara 0.3.9. NO WEBRAT.
I'm unable to use 'rendered.should have_selector('a') in my view specs.
1) home/_menu.erb should add a link to home first
Failure/Error: rendered.should have_selector('a', 'Home')
undefined me
David Chelimsky wrote:
> Two issues:
>
> 1. Capybara matchers do not support arbitrary strings, so they do not
> work in view specs
> 2. Even if they did, the capybara matcher would be has_css, not
> has_selector
Thanks for quick reply. Sorry about my delay (I was sick and down).
I'm not an ex
> I'd prefer to be able to use Capybara matchers for
> everything in order to avoid the duplication of two very similar but
> slightly different APIs.
>
> Cheers,
> Wincent
Wincent pointed out my exact feelings on the matter (Probably in a
better way than I could have.)
But I'm willing to fol