Sha256: 4221aaf0257070853ce6eafd90e72312b00d74c80a87eae687335429b2753294
Contents?: true
Size: 1.05 KB
Versions: 41
Compression:
Stored size: 1.05 KB
Contents
class RjsSpecController < ApplicationController prepend_view_path File.join(File.dirname(__FILE__), "..", "views") def replace_html end def insert_html end def replace end def hide_div end def hide_page_element end def replace_html_with_partial end def render_replace_html render :update do |page| page.replace_html 'mydiv', 'replacement text' page.replace_html 'myotherdiv', 'other replacement text' end end def render_replace_html_with_partial render :update do |page| page.replace_html 'mydiv', :partial => 'rjs_spec/replacement_partial' end end def render_insert_html render :update do |page| page.insert_html 'mydiv', 'replacement text' end end def render_replace render :update do |page| page.replace 'mydiv', 'replacement text' end end def render_hide_div render :update do |page| page.hide 'mydiv' end end def render_hide_page_element render :update do |page| page['mydiv'].hide end end end
Version data entries
41 entries across 41 versions & 9 rubygems