Rspec2 - have_rjs

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?

Have found no useful answer from usual searches.

Thanks,

On May 16, 2011, at 1:04 PM, Andy K. 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs