Class: RjsSpecController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RjsSpecController
- Defined in:
- lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb
Instance Method Summary collapse
- #hide_div ⇒ Object
- #hide_page_element ⇒ Object
- #insert_html ⇒ Object
- #render_hide_div ⇒ Object
- #render_hide_page_element ⇒ Object
- #render_insert_html ⇒ Object
- #render_replace ⇒ Object
- #render_replace_html ⇒ Object
- #render_replace_html_with_partial ⇒ Object
- #replace ⇒ Object
- #replace_html ⇒ Object
- #replace_html_with_partial ⇒ Object
Instance Method Details
#hide_div ⇒ Object
13 14 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 13 def hide_div end |
#hide_page_element ⇒ Object
16 17 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 16 def hide_page_element end |
#insert_html ⇒ Object
7 8 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 7 def insert_html end |
#render_hide_div ⇒ Object
47 48 49 50 51 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 47 def render_hide_div render :update do |page| page.hide 'mydiv' end end |
#render_hide_page_element ⇒ Object
53 54 55 56 57 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 53 def render_hide_page_element render :update do |page| page['mydiv'].hide end end |
#render_insert_html ⇒ Object
35 36 37 38 39 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 35 def render_insert_html render :update do |page| page.insert_html 'mydiv', 'replacement text' end end |
#render_replace ⇒ Object
41 42 43 44 45 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 41 def render_replace render :update do |page| page.replace 'mydiv', 'replacement text' end end |
#render_replace_html ⇒ Object
22 23 24 25 26 27 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 22 def render_replace_html render :update do |page| page.replace_html 'mydiv', 'replacement text' page.replace_html 'myotherdiv', 'other replacement text' end end |
#render_replace_html_with_partial ⇒ Object
29 30 31 32 33 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 29 def render_replace_html_with_partial render :update do |page| page.replace_html 'mydiv', :partial => 'rjs_spec/replacement_partial' end end |
#replace ⇒ Object
10 11 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 10 def replace end |
#replace_html ⇒ Object
4 5 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 4 def replace_html end |
#replace_html_with_partial ⇒ Object
19 20 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb', line 19 def replace_html_with_partial end |