webrat/spec/integration/rails/app/controllers/webrat_controller.rb
Amos King 2c9b546a83 Merge branch 'lh_120_tests_with_selenium' of git@github.com:gaffo/webrat into lh_82
Conflicts:
	spec/integration/rails/test/integration/webrat_test.rb
2009-01-23 15:11:16 -06:00

35 lines
526 B
Ruby

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