Sha256: 66953e9f3eda9b28a4084b52602ab0a2f0b681921a0c08de857674cd03e29f05

Contents?: true

Size: 526 Bytes

Versions: 5

Compression:

Stored size: 526 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 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

5 entries across 5 versions & 3 rubygems

Version Path
revo-webrat-0.7.0.1 spec/fakes/test_adapter.rb
davidtrogers-webrat-0.7.0 spec/fakes/test_adapter.rb
revo-webrat-0.7.0 spec/fakes/test_adapter.rb
revo-webrat-0.7.1.pre spec/fakes/test_adapter.rb
webrat-0.7.0 spec/fakes/test_adapter.rb