lib/capybara/httpclient_json/driver.rb in capybara-json-0.2.3 vs lib/capybara/httpclient_json/driver.rb in capybara-json-0.2.4
- old
+ new
@@ -65,14 +65,14 @@
def delete(url, params = {}, headers = {})
process :delete, url, params, headers
end
%w[ get delete ].each do |method|
- class_eval %{
+ class_eval <<-DEF, __FILE__, __LINE__ + 1
def #{method}!(url, params = {}, env = {})
handle_error { #{method}(url, params, env) }
end
- }
+ DEF
end
%w[ post put ].each do |method|
class_eval %{
def #{method}!(url, json, headers = {})