What is the best way to ensure proper RJS creation in a Controller action?
For example, I want to make sure the 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'm tired of RSpec after using it for a year. This should be a simple question, but it is one that no one answers.
I have been told repeatedly that RSpec defines behavior, and what I'm trying to do is just "test code." Highlight: some_div is behavior as far as I can tell.
ruby-on-rails rspec
Matt darby
source share