mattheworiordan / capybara-screenshot

Automatically save screen shots when a Capybara scenario fails
MIT License
1.02k stars 168 forks source link

Fix .capybara_root with partial Rails environment loaded #238

Closed jayrobin closed 6 years ago

jayrobin commented 6 years ago

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.

schreifels commented 6 years ago

Would love to get this merged!

schreifels commented 6 years ago

Thanks very much, @mattheworiordan !

schreifels commented 6 years ago

Thanks very much, @mattheworiordan !

schreifels commented 6 years ago

Thanks very much, @mattheworiordan !

schreifels commented 6 years ago

Thanks very much, @mattheworiordan !