Sha256: 07f2f5c2ab080fcc960bfcb4641b106adbf52ef9ce9ed9b709b00c127535f595

Contents?: true

Size: 455 Bytes

Versions: 8

Compression:

Stored size: 455 Bytes

Contents

# encoding: utf-8


module Caterpillar::JunitHelper

  def xhr_onclick_tag # :nodoc:
    button_to_remote('send onclick POST', :update => 'onclick_resp', :url => { :action => :xhr_hello }) +\
    '<div id="onclick_resp"></div>'
  end

  def xhr_form_tag # :nodoc:
    form_remote_tag( :update => 'form_resp', :url => { :action => :xhr_hello }) do
      '<div>' + submit_tag('send form POST') + '</div>'
    end
    '<div id="form_resp"></div>'
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
caterpillar-1.6.0 portlet_test_bench/helpers/caterpillar/junit_helper.rb
caterpillar-1.4.4 portlet_test_bench/helpers/caterpillar/junit_helper.rb
caterpillar-1.4.3 portlet_test_bench/helpers/caterpillar/junit_helper.rb
caterpillar-1.4.2 portlet_test_bench/helpers/caterpillar/junit_helper.rb
caterpillar-1.4.1 portlet_test_bench/helpers/caterpillar/junit_helper.rb
caterpillar-1.4.0 portlet_test_bench/helpers/caterpillar/junit_helper.rb
caterpillar-1.3.1 portlet_test_bench/helpers/caterpillar/junit_helper.rb
caterpillar-1.2.5 portlet_test_bench/helpers/caterpillar/junit_helper.rb