Sha256: d754475aa078c3d9e7064eadbdaba5101a962fdb3a8c3b101101a232441ff14d
Contents?: true
Size: 950 Bytes
Versions: 2
Compression:
Stored size: 950 Bytes
Contents
require 'capybara' require 'capybara/dsl' require 'multi_json' module Capybara module Json def self.to_include ::Capybara.const_defined?("DSL") ? ::Capybara::DSL : ::Capybara end def self.included(base) base.__send__(:include, to_include) unless base < to_include base.__send__(:include, ::Capybara::Json::Dsl) end autoload :Dsl, 'capybara/json/dsl' autoload :Error, 'capybara/json/error' module Driver autoload :Base, "capybara/json/driver/base" end end module RackTestJson autoload :Driver, 'capybara/rack_test_json/driver' autoload :Client, "capybara/rack_test_json/client" end module HTTPClientJson autoload :Driver, 'capybara/httpclient_json/driver' end end Capybara.register_driver :rack_test_json do |app| Capybara::RackTestJson::Driver.new(app) end Capybara.register_driver :httpclient_json do |app| Capybara::HTTPClientJson::Driver.new(app) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capybara-json-0.4.0 | lib/capybara/json.rb |
capybara-json-0.3.0 | lib/capybara/json.rb |