On 2008-09-28, at 17:20, Nick Hoffman wrote:
431         it 'should hide the map filter errors <div>' do
432           do_xhr @xhr_params
433           response.should have_rjs
434 #          response.should have_rjs(:hide, 'map-filter-errors')
435         end

I just discovered that I need to pass :chained_replace_html to #have_rjs , like so: response.should have_rjs(:chained_replace_html, :hide, 'map-filter- errors')

However, after googling around and looking through the source for #assert_select_rjs , I have no idea what :chained_replace_html does, nor why :hide is insufficient. Would someone mind enlightening me?

Thanks!
-Nick
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to