lib/capybara/json/dsl.rb in capybara-json-0.3.0 vs lib/capybara/json/dsl.rb in capybara-json-0.4.0
- old
+ new
@@ -11,10 +11,10 @@
page.driver.#{method}(path, params, env)
end
DEF
end
- %w[ post post! put put! ].each do |method|
+ %w[ post post! put put! patch patch! ].each do |method|
module_eval <<-DEF, __FILE__, __LINE__ + 1
def #{method}(path, json, env = {})
page.driver.#{method}(path, json, env)
end
DEF