Sha256: 5bc0149066dced10903973111949034dea21309f365bb2221bf544ad32775a8f

Contents?: true

Size: 601 Bytes

Versions: 16

Compression:

Stored size: 601 Bytes

Contents

module Webrat #:nodoc:
  def self.adapter_class #:nodoc:
    TestAdapter
  end

  class TestAdapter #:nodoc:
    attr_accessor :response_body
    attr_writer :response_code

    def initialize(*args)
    end

    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

16 entries across 16 versions & 10 rubygems

Version Path
diabolo-webrat-0.5.1 spec/fakes/test_adapter.rb
dstrelau-webrat-0.5.1 spec/fakes/test_adapter.rb
honkster-webrat-0.6.0.10 spec/fakes/test_adapter.rb
honkster-webrat-0.6.0.9 spec/fakes/test_adapter.rb
darkofabijan-webrat-0.6.1 spec/fakes/test_adapter.rb
kbaum-webrat-0.5.1 spec/fakes/test_adapter.rb
kbaum-webrat-0.6.1.pre spec/fakes/test_adapter.rb
cynergy-webrat-0.6.0 spec/fakes/test_adapter.rb
webrat-0.6.0 spec/fakes/test_adapter.rb
radar-webrat-0.5.1.1 spec/fakes/test_adapter.rb
radar-webrat-0.5.1 spec/fakes/test_adapter.rb
mkuklis-webrat-0.5.1 spec/fakes/test_adapter.rb
emipair-webrat-0.5.3 spec/fakes/test_adapter.rb
honkster-webrat-0.6.0 spec/fakes/test_adapter.rb
webrat-0.5.3 spec/fakes/test_adapter.rb
webrat-0.5.1 spec/fakes/test_adapter.rb