lib/capybara/json.rb in capybara-json-0.2.4 vs lib/capybara/json.rb in capybara-json-0.3.0.beta1
- old
+ new
@@ -28,17 +28,9 @@
page.driver.#{method}(path, json, env)
end
DEF
end
- %w[ json ].each do |method|
- module_eval <<-DEF, __FILE__, __LINE__ + 1
- def #{method}
- page.driver.#{method}
- end
- DEF
- end
-
autoload :Error, 'capybara/json/error'
module Driver
autoload :Base, "capybara/json/driver/base"
end