mattheworiordan/capybara-screenshot — Issue #12: screenshot doesn't play well with spork
Author: huynguyen
Created: 2012-01-26 20:04:22+00:00
State: open

Running into an issue where no screenshots are created while running spork. Has anyone else seen this behavior?

I first noticed that it wasn't triggering on failed integration tests. I've tried calling it manually via the following.

Capybara::Screenshot::Saver.screen_shot_and_save_page Capybara, Capybara.body
page.driver.render Rails.root.join("tmp/capybara/#{Time.now.strftime('%Y-%m-%d-%H-%M-%S')}.png")

I do get screenshots when I turn off spork though.