webrat/spec/integration/rails/app/controllers/webrat_controller.rb

24 lines
282 B
Ruby
Raw Permalink Normal View History

class FakeModel
def id
nil
end
end
2008-12-29 06:30:26 +00:00
class WebratController < ApplicationController
2008-12-29 06:30:26 +00:00
def form
end
2008-12-29 06:30:26 +00:00
def submit
render :text => "OK"
end
2009-01-05 04:56:52 +00:00
def internal_redirect
redirect_to :submit
end
2009-01-05 04:56:52 +00:00
def external_redirect
redirect_to "http://google.com"
end
2008-12-29 06:30:26 +00:00
end