What is the best way to ensure that the proper RJS is being generated in a Controller action?
For example, I want to ensure that a div is highlighted as such:
def new
render :update do |page|
page.visual_effect :highlight, :some_div
end
end
Rant: This is quickly becoming one of the reasons I grow tired of RSpec after using it for a year. This should be an easy question, but it's one that no one seems to have an answer for.
I've been told repeatedly that RSpec specifies behavior and what I'm trying to do here is just "test code". Highlighting of the :some_div is behavior as far as I can tell.