Sha256: 7f4d38824fa3db3e4d2e317a4ef191b4b8032c23cd8497b1a80e909b838ba786
Contents?: true
Size: 448 Bytes
Versions: 15
Compression:
Stored size: 448 Bytes
Contents
require 'capybara/dsl' require 'fileutils' module DummyRailsIntegration include Capybara::DSL def setup super FileUtils.rm_rf('test/dummy_rails/tmp/cache', secure: true) end def teardown super Capybara.reset_sessions! Capybara.use_default_driver end def screenshot! path = "tmp/#{name}.png" page.driver.render(File.join(GEM_PATH, path), full: true) STDERR.puts "Screenshot saved to #{path}" end end
Version data entries
15 entries across 15 versions & 3 rubygems