In our tests we are not loading the entire Rails environment to speed up our suite, but we do require a number of ActiveSupport/ActionView helpers. This breaks capybara-screenshot as the Rails module is loaded, but ::Rails.root raises NoMethodError.
This is a minor fix to ensure that the ::Rails.root function is callable.
In our tests we are not loading the entire Rails environment to speed up our suite, but we do require a number of ActiveSupport/ActionView helpers. This breaks
capybara-screenshot
as the Rails module is loaded, but::Rails.root
raisesNoMethodError
.This is a minor fix to ensure that the
::Rails.root
function is callable.