Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/support/dummy_rails_integration.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/support/dummy_rails_integration.rb b/test/support/dummy_rails_integration.rb
index 9dbc254..c1604b1 100644
--- a/test/support/dummy_rails_integration.rb
+++ b/test/support/dummy_rails_integration.rb
@@ -17,7 +17,9 @@ module DummyRailsIntegration
def screenshot!
path = "tmp/#{name}.png"
- page.driver.render(File.join(GEM_PATH, path), full: true)
+ full_path = File.join(GEM_PATH, path)
+ FileUtils.mkdir_p(File.dirname(full_path))
+ page.driver.render(full_path, full: true)
STDERR.puts "Screenshot saved to #{path}"
end