Sha256: 93cbb9c3d149a8a3902e8cfb0e510cb358f43f71e364bf64f95d1c94e18fe079

Contents?: true

Size: 343 Bytes

Versions: 2

Compression:

Stored size: 343 Bytes

Contents

module Capybara::Json::Driver
  class Base
    %w[ get post put delete get! post! put! delete!
        reset!
        current_url
        raw_json json source body response_headers status_code
    ].each do |method|
      define_method(method) do
        raise NotImplementedError
      end
    end
    def needs_server?; false; end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capybara-json-0.3.0 lib/capybara/json/driver/base.rb
capybara-json-0.3.0.beta2 lib/capybara/json/driver/base.rb