lib/capybara/rack_test_json/driver.rb in capybara-json-0.3.0 vs lib/capybara/rack_test_json/driver.rb in capybara-json-0.4.0

- old
+ new

@@ -29,10 +29,10 @@ end DEF end alias visit get - %w[ post put ].each do |method| + %w[ post put patch ].each do |method| class_eval <<-DEF, __FILE__, __LINE__ + 1 def #{method}(path, json, env = {}) json = MultiJson.dump(json) unless json.is_a?(String) request_env = {