Sha256: 75a3b5f08ed336263410e8c0e827c49a7c6423c3dc220673417b8a40ad990a4f
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
class FakeModel def id nil end end class WebratController < ApplicationController def form end def buttons 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 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sr-webrat-0.4.4.1 | spec/integration/rails/app/controllers/webrat_controller.rb |