Skip to content

Commit

Permalink
Respect absolute paths for screenshot dir. Closes mattheworiordan#145
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaw committed Jan 4, 2016
1 parent 30a0604 commit 2bdc42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara-screenshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def self.capybara_root
@capybara_root ||= if defined?(::Rails)
::Rails.root.join capybara_tmp_path
elsif defined?(Padrino)
Padrino.root capybara_tmp_path
File.expand_path(capybara_tmp_path, Padrino.root)
elsif defined?(Sinatra)
File.join(Sinatra::Application.root, capybara_tmp_path)
else
Expand Down

0 comments on commit 2bdc42b

Please sign in to comment.