lib/capybara/rack_test_json/driver.rb in capybara-json-0.0.2 vs lib/capybara/rack_test_json/driver.rb in capybara-json-0.0.3
- old
+ new
@@ -1,6 +1,4 @@
-require 'multi_json'
-
to_inherit = Capybara.const_defined?("RackTest") ? Capybara::RackTest::Driver : Capybara::Driver::RackTest
class Capybara::RackTestJson::Driver < to_inherit
def body
MultiJson.decode(source) || {}