Module: JavascriptHelper
- Defined in:
- lib/myrails/templates/spec/support/helpers/javascript.rb
Instance Method Summary collapse
- #click_ok ⇒ Object
-
#fill_in_trix_editor(id, value) ⇒ Object
Basecamp trix uses hidden input to populate its editor.
Instance Method Details
#click_ok ⇒ Object
7 8 9 |
# File 'lib/myrails/templates/spec/support/helpers/javascript.rb', line 7 def click_ok page.accept_alert end |
#fill_in_trix_editor(id, value) ⇒ Object
Basecamp trix uses hidden input to populate its editor
3 4 5 |
# File 'lib/myrails/templates/spec/support/helpers/javascript.rb', line 3 def fill_in_trix_editor(id, value) find(:css, id).set(value) end |