Sha256: dd1d29c21ab25f2a37b562be4df8ebd957f8f91c26ce1be81fe7f64af8b6640b

Contents?: true

Size: 641 Bytes

Versions: 26

Compression:

Stored size: 641 Bytes

Contents

class FakeModel
  def id
    nil
  end
end

class WebratController < ApplicationController

  def form
  end

  def submit
    render :text => "OK <a href='/' id='link_id'>Test Link Text</a>"
  end

  def internal_redirect
    redirect_to submit_path
  end

  def infinite_redirect
    redirect_to infinite_redirect_path
  end

  def external_redirect
    redirect_to "http://google.com"
  end

  def host_redirect
    redirect_to submit_url
  end

  def before_redirect_form
  end

  def redirect_to_show_params
    redirect_to show_params_path(:custom_param => "123")
  end

  def show_params
    render :text => params.to_json
  end

end

Version data entries

26 entries across 26 versions & 9 rubygems

Version Path
diabolo-webrat-0.5.1 spec/integration/rails/app/controllers/webrat_controller.rb
dstrelau-webrat-0.5.1 spec/integration/rails/app/controllers/webrat_controller.rb
emipair-webrat-0.0.1 spec/integration/rails/app/controllers/webrat_controller.rb
hardbap-webrat-0.5.1 spec/integration/rails/app/controllers/webrat_controller.rb
hardbap-webrat-0.5.2 spec/integration/rails/app/controllers/webrat_controller.rb
winton-sum-0.1.0 vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
winton-sum-0.1.1 vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
kbaum-webrat-0.5.1 spec/integration/rails/app/controllers/webrat_controller.rb
sum-0.1.1 vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
emipair-webrat-0.5.3 spec/integration/rails/app/controllers/webrat_controller.rb
webrat-0.5.3 spec/integration/rails/app/controllers/webrat_controller.rb
webrat-0.5.1 spec/integration/rails/app/controllers/webrat_controller.rb
webrat-0.4.5 spec/integration/rails/app/controllers/webrat_controller.rb
webrat-0.5.0 spec/integration/rails/app/controllers/webrat_controller.rb
metry-2.0.4 vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
metry-2.0.5 vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
metry-2.1.0 vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
metry-2.1.1 vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
metry-2.0.0 vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
metry-2.0.1 vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb