lib/capybara/json.rb in capybara-json-0.3.0.beta1 vs lib/capybara/json.rb in capybara-json-0.3.0.beta2
- old
+ new
@@ -28,9 +28,15 @@
page.driver.#{method}(path, json, env)
end
DEF
end
+ %w[ raw_json json ].each do |method|
+ define_method(method) do
+ page.driver.__send__(method)
+ end
+ end
+
autoload :Error, 'capybara/json/error'
module Driver
autoload :Base, "capybara/json/driver/base"
end