[rspec-users] Testing RJS select method

Rodrigo Alvarez Fernández papipo at gmail.com
Thu Jan 25 08:30:02 EST 2007


How can I test this kind of RJS code?

page.select '#id .class'.each do |element|

I know that should_have_rjs admits a block, but i don't know exactly
which is its purpose.
And I can test that the "select" part is beign called, but I don't
know hot to test the  "removeClassName" part.

Thanks in advance.

More information about the rspec-users mailing list