[rspec-users] rspec2 - have_rjs

David Chelimsky
2011-05-16T18:09:30Z

On May 16, 2011, at 1:04 PM, Andy Koch wrote:

> Hi,
>
> Updating a rails app to Rails3/rspec2 and have a spec using
"have_rjs"
> or "has_rjs?" - is there an rspec2 version or alternative?

No there isn''t in rspec-rails-2, but you can use the rails
assert_select_rjs:

http://api.rubyonrails.org/classes/ActionDispatch/Assertions/SelectorAssertions.html#method-i-assert_select_rjs

HTH,
David