mattheworiordan/capybara-screenshot — pull request #13 by hlascelles (2012-01-27 18:17:33+00:00)
Title: Support for Padrino

Simple gem, well executed, thanks!

Here's a patch to support Padrino. Since Padrino is built on Sinatra, the Sinatra check succeeds, but then the settings variable is nil, and the app tanks.

This just makes a check with Padrino, then uses the Padrino root method.

Note, it doesn't quite operate the same as the Rails.root, (see https://github.com/padrino/padrino-framework/issues/730) but what I have checked in works.

H