Before, I had this in my RJS template:
page['order'].replace_html :partial => 'order'
When I use assert_select_rjs as follows:
assert_select_rjs :replace_html, 'order'
I get the error:
No RJS statement that replaces or inserts HTML content.
But when I change the RJS template to this:
page.replace_html 'order', :partial => 'order'
Then assert_select_rjs works fine. What gives?