lib/capybara/json.rb in capybara-json-0.0.2 vs lib/capybara/json.rb in capybara-json-0.0.3
- old
+ new
@@ -1,8 +1,10 @@
require 'capybara'
require 'capybara/dsl'
+require 'multi_json'
+
module Capybara
module Json
def self.to_include
Capybara.const_defined?("DSL") ? Capybara::DSL : Capybara
end
@@ -30,10 +32,18 @@
end
module RackTestJson
autoload :Driver, 'capybara/rack_test_json/driver'
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