webrat/spec/fakes/test_session.rb
Bryan Helmkamp 03914fd293 Whitespace
2009-04-07 20:30:12 -04:00

35 lines
576 B
Ruby

module Webrat #:nodoc:
def self.session_class #:nodoc:
TestSession
end
class TestSession < Session #:nodoc:
attr_accessor :response_body
attr_writer :response_code
def doc_root
File.expand_path(File.join(".", "public"))
end
def response
@response ||= Object.new
end
def response_code
@response_code || 200
end
def get(url, data, headers = nil)
end
def post(url, data, headers = nil)
end
def put(url, data, headers = nil)
end
def delete(url, data, headers = nil)
end
end
end