Sha256: 17690ded3782a20618edc63be03b110d5139b210a2ba881d60f3d7ccbce8af29

Contents?: true

Size: 526 Bytes

Versions: 11

Compression:

Stored size: 526 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 external_redirect
    redirect_to "http://google.com"
  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

11 entries across 11 versions & 1 rubygems

Version Path
adva-0.2.4 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
adva-0.2.3 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
adva-0.2.2 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
adva-0.2.1 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
adva-0.2.0 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
adva-0.1.4 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
adva-0.1.3 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
adva-0.1.2 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
adva-0.1.1 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
adva-0.1.0 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb
adva-0.0.1 test/webrat/spec/integration/rails/app/controllers/webrat_controller.rb