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
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to