Sha256: e04446b8027b5b7963730f662ad25fc83adda0c1b6fb373a0e6e21e3b58065c3

Contents?: true

Size: 575 Bytes

Versions: 15

Compression:

Stored size: 575 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
adva-0.3.2 test/webrat/spec/fakes/test_session.rb
adva-0.3.1 test/webrat/spec/fakes/test_session.rb
adva-0.3.0 test/webrat/spec/fakes/test_session.rb
adva-0.2.4 test/webrat/spec/fakes/test_session.rb
adva-0.2.3 test/webrat/spec/fakes/test_session.rb
adva-0.2.2 test/webrat/spec/fakes/test_session.rb
adva-0.2.1 test/webrat/spec/fakes/test_session.rb
adva-0.2.0 test/webrat/spec/fakes/test_session.rb
adva-0.1.4 test/webrat/spec/fakes/test_session.rb
adva-0.1.3 test/webrat/spec/fakes/test_session.rb
adva-0.1.2 test/webrat/spec/fakes/test_session.rb
adva-0.1.1 test/webrat/spec/fakes/test_session.rb
adva-0.1.0 test/webrat/spec/fakes/test_session.rb
adva-0.0.1 test/webrat/spec/fakes/test_session.rb
integrity-0.1.9 vendor/webrat/spec/fakes/test_session.rb